Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Verification of copy action? (https://www.kinook.com/Forum/showthread.php?t=3819)

CREvans 10-08-2008 01:51 PM

Verification of copy action?
 
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 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) (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.


All times are GMT -5. The time now is 06:37 PM.


Copyright © 1999-2023 Kinook Software, Inc.