1. File Date Time Stamps
- Posted by OtterDad <otter at FULL-MOON.COM> Mar 12, 2000
- 474 views
I'm a new list member so forgive me if this has already been discussed or even solved. I'm looking for code to programmatically change the time / date stamp on a file. I'm having problems synching up files of different computer systems using xcopy. when i xcopy /d the new file for some reason has a time stamp exactly one second newer than the original file, so if i restore i have to xcopy every single file back again. VERY inefficient and I'm talking about synching literally hundreds of thousands of files. my solution was to do a byte level file compare and if euphoria finds the files identical to reset the time date stamp. I've looked at the win32api calls which to me are very cryptic and confusing. if worse comes to worse i could always use a command line driven program to change the stamp and execute a shell command, but alas i haven't found such a program either. has anyone written the win32 code for this or found a stand alone command line driven program to change the stamp?? any help will be greatly appreciated.
2. Re: File Date Time Stamps
- Posted by Bernie Ryan <LockCityData at CS.COM> Mar 12, 2000
- 443 views
There are old programs out on the Web to do this. One was called touch which was used to change the date/time on any file or files. This was used to to change the date/time to when using a compiler. You can probably find "C" source for the program or and executable at Simtel or one of those archives. Bernie
3. Re: File Date Time Stamps
- Posted by OtterDad <otter at FULL-MOON.COM> Mar 12, 2000
- 444 views
found the touch program at simtel - you have no idea how much time and energy you have saved me - many thanks! for anyone else needing the program it is available along with source code at