|
Answer» I have a batch file that copies files from a DESIGN file to a computer running an automated cutting machine. At present, we use XCOPY to copy over all existing files and ADD newly created files. I want to be ABLE to only copy to the cutter computer files with a newer date and newly created files. We change drill holes to notches on the cutter and do not want to lose that if the existing files did not change. Help.Welcome to the CH forums.
Have you tried the /D and /U options in XCopy? (XCopy/? at the command prompt to display).
Perhaps we'd be able to assist you further if you post your XCopy command line.Thank you. Yes, I will post the lines that are in the file now. Everything is turned off - I will post in the morning.Ok. here is the batch file.
:cutter 1 deltree /Y C:\ISO\Specials\*.* XCopy \\Nesterfoam\Specials\*.* /s C:\ISO\Specials\*.* XCopy \\Nest3\Cutterfiles\*.* /s C:\ISO\*.* /s /d XCopy \\Nesterfoam\partordernesterfoam\*.* /s C:\ISO\partordernesterfoam\*.* echo cutter files transfered :cont pause
The fourth line down is the issue. I originally wanted to only copy over files in the cutter if the source file was newer than destination file. I can use the /d without specifying a date to accomplish this. However, the fourth line down is not working. I will VERIFY if Nest3 ans cutterfiles exist, but can anyone tell me if line four is in the correct order.?. Help.please do not double post. Merged.Quote XCopy \\Nest3\Cutterfiles\*.* /s C:\ISO\*.* /s /d Try it without the double /S
|