0

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?

OMGsh
  • 127

1 Answers1

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