|
|
|
re: Folder and File Dates
Friday, October 12, 2007 at 9:04 pm Windows XP Annoyances Discussion Forum
Posted by Rich Kurtz
(11293 messages posted)
It's a bug that goes back to DOS days (in my opinion anyway). No way that I know
of to copy a directory and maintain the source directory timestamp.
What you can do is write a batch file to change all the timestamps of the copied
directories to match the originals. Download a port of the UNIX touch program and
use it to change the timestamps.
C:\>touch --help
Usage: touch [OPTION]... FILE...
Update the access and modification times of each FILE to the current time.
-a change only the access time
-c do not create any files
-d, --date=STRING parse STRING and use it instead of current time
-f (ignored)
-m change only the modification time
-r, --reference=FILE use this file's times instead of current time
-t STAMP use MMDDhhmm[[CC]YY][.ss] instead of current time
--time=WORD access -a, atime -a, mtime -m, modify -m, use -a
--help display this help and exit
--version output version information and exit
STAMP may be used without -t if none of -drt, nor --, are used.
You can get it here: unxtools.zip
- Written in response to:
- Folder and File Dates (MattWD: Friday, October 12, 2007 at 8:53 am)
There are presently no replies to this message.
|
|
All messages in this thread [show all]
 |  | re: Folder and File Dates (Rich Kurtz: Fri, Oct 12, 2007, 9:04 pm) |
| |
| |
Return to the Windows XP Discussion Forum
|
|
|
|