Kinook Software Forum

Go Back   Kinook Software Forum > Visual Build Professional > [VBP] General Discussion

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 10-08-2008, 01:51 PM
CREvans CREvans is online now
Registered User
 
Join Date: 03-10-2008
Location: Iowa
Posts: 28
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.
Reply With Quote
  #2  
Old 10-08-2008, 02:01 PM
kinook kinook is online now
Administrator
 
Join Date: 03-06-2001
Location: Colorado
Posts: 6,034
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.
Reply With Quote
  #3  
Old 10-10-2008, 04:54 AM
DuncanL DuncanL is offline
Registered User
 
Join Date: 07-26-2007
Posts: 29
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.

Last edited by DuncanL; 10-10-2008 at 05:04 AM.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



All times are GMT -5. The time now is 09:13 PM.


Copyright © 1999-2023 Kinook Software, Inc.