I am using the below command to get filename and current date
Get-childitem -path c:\folder\2010 | select -property filename , currenttime
The output I'm getting is:
Filename Current date
c:\folder\2010\txt1
c:\folder\2010\txt2
But I need to print with current date is there any other way to do it.
Get-childitem -path c:\folder\2010 | select -property fullname, @{n='Current date';e={get-date}}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.