You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
Marco,
Is my syntax incorrect here? I simply want to copy any files
modifired on 12-15-2003 from c:\temp\temp1 to c:\temp\temp2. I
am trying to run this as a batch file. Am I doing something wrong?
Thanks for the help.
Originally posted by Michael Montemayor: I would like to modify this so that files that were most recently
updated are the ones that get copied. Is this possible? If so
can someone give me an example?
Code:
XCOPY /?
XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W]
[/C] [/I] [/Q] [/F] [/L] [/G] [/H] [/R] [/T] [/U]
[/K] [/N] [/O] [/X] [/Y] [/-Y] [/Z]
[/EXCLUDE:file1[+file2][+file3]...]
source Specifies the file(s) to copy.
destination Specifies the location and/or name of new files.
/A Copies only files with the archive attribute set,
doesn't change the attribute.
/M Copies only files with the archive attribute set,
turns off the archive attribute.
/D:m-d-y Copies files changed on or after the specified date.
If no date is given, copies only those files whose
source time is newer than the destination time.
[...]
Maybe XCOPY with the /D swtich will do the job (if you simple need to do it from a batch file)?
Bye!
------------------
Try TrID file identifier! Over 940 filetypes and counting...
I would like to modify this so that files that were most recently
updated are the ones that get copied. Is this possible? If so
can someone give me an example?
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Leave a comment: