You could add this after the copy command. This way the script will show the error code and text on the screen, sleep for 5 seconds and then exit so it will not deleted the stuff on the USB drive because then things obviously would be fubared.

Code:

If @ERROR
?"Eeks. Some kind of error occurred while copying: " $file
?@ERROR
?@SERROR
Sleep 5
Exit
EndIf

_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.