简体   繁体   中英

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

I used

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

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM