Hoody
Hoody

Reputation: 3381

Batch file to update all files Modified and Accessed Date and Time

Is it possible to write a batch file which will update the Modified and Accessed Date/Times to today's date? I need to do this to all files in a directory every night in a scheduled task.

Thanks

Upvotes: 0

Views: 3557

Answers (1)

Hoody
Hoody

Reputation: 3381

I used

cd c:\MyFolder
copy c:\MyFolder,,+

Upvotes: 3

Related Questions