#165782 - 2006-08-11 09:57 AM
Re: Verify succesful copy in a loop
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
You have a number of choices depending on what you want to do:
- Inside your loop, after each copy check the error value and delete the file if the copy was successful. This will leave individual files that caused an error on the source.
- Inside your loop, after each copy check the error value and set your own error variable if an error occurred. After the loop check your own error variable and if set do not delete the files. In this case if an error occurs *ALL* files will be left on the source, including any which copied successfully.
Which method you opt for will be determined by your needs.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1662 anonymous users online.
|
|
|