View Full Version : Verification of copy action?
CREvans
10-08-2008, 01:51 PM
Is there any verification possible during the copy file action to verify that the file copied successfully? I could write a checksum routine around the copy action, I suppose, but I'd prefer to know that the built-in copy command already has some sort of verification built-in, and won't register a successful completion unless it's verified good.
kinook
10-08-2008, 02:01 PM
The Copy Files action uses the Windows CopyFileEx API (http://msdn.microsoft.com/en-us/library/aa363852.aspx) to copy files (which I suspect is also used by xcopy, cmd.exe, Explorer, RoboCopy, etc.). I'm pretty sure that function will not return a success code if the file was not properly copied.
DuncanL
10-10-2008, 04:54 AM
Alternatively, use RoboCopy (Click here for more info) (http://en.wikipedia.org/wiki/Robocopy) (available from the Windows Resource Kit) and run it as a Run Program step. The command line is a bit odd but it will perform verified copies.
vBulletin® v3.8.11, Copyright ©2000-2024, vBulletin Solutions Inc.