Say I have 1000 rtf o mp3 files and I want to change the date modified of them all to the current time. How can I do that?
Asked
Active
Viewed 250 times
1 Answers
0
Put all the of items you want changing in 1 folder, go to the directory before the folder and run this.
foreach($file in Get-ChildItem **FolderName**) {$(Get-Item $file.Fullname).lastwritetime=$(Get-Date)}
SQLTemp
- 1,617