Welcome!
Log In
Home
>
WWW.GPIT.FR
>
SCRIPTS
> Topic
Forum List
Message List
New Topic
[PS1] With Windows PowerShell, however, changing the last write time of a file to the current date and time
iznogoud
February 11, 2010 10:42AM
$b = Get-Date ; Get-ChildItem c:\scripts\*.txt | ForEach-Object {$_.LastWriteTime = $b}
$b = Get-Date ; Get-ChildItem c:\scripts\mon.txt | ForEach-Object {$_.LastWriteTime = $b}
http://207.46.16.252/en-us/magazine/2006.12.heyscriptingguy.aspx
Reply
Quote
Newer Topic
Older Topic
Print View
RSS
Sorry, only registered users may post in this forum.
Click here to login