简体   繁体   中英

How to update the Modified Date of folders with a batch file?

copy /b Source+,, updates a file's Modified Date.

Is there a method for folders?

I can't see a simple way to change the date.
Neither renaming nor changing attributes has an effect on the modified date.

Currently, the only way seems to rename the directory, create a new one and move the content from the old to the new directory.
That's only a nasty solution.

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