File Date Time Stamps
- Posted by OtterDad <otter at FULL-MOON.COM> Mar 12, 2000
- 472 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.