|
Answer» Hi all,
I want to know if i can check the DATE MODIFIED of a CERTAIN file from X drive and transfer to U drive.
If the date modified for the file in U drive is updated then it will do nothing. But if its different from the one in X drive than it will copy the one in X drive to U drive.
Tried searching for it. But they all give me some weird links.
Can anyone help? Thanks in advanceI know how to copy the files from one drive to another. but DONT know if i can check the date modified.. can anyone help.. thanksYou don't mention your OS but at the XP Command Prompt, or in a script, you could use DIR with the /TW parameter to display the date written (DIR PATH\FILENAME.EXT). I cannot find that the "date modified" is available. If you accept that the date written and date modified are the same then /TW will give you a start at what you want.
Then you could extract the date written for both files (on U and X drives) and compare them. If the date written on the source file is later than that of the destination file you could then copy.
Good luck.pipipo:
Is it necessary to do this using just commands available within your os? (assuming XP).
Or do you just want to get the job done?
I ask, because it seems like what you are describing is just what some backup software does. If you could use one of the free ones out there, you'd be set.
|