Any idea why setting it as a variable wasn't working for me? Is there some reason why I can't do that?
Code:
 
$error=@error
If $error <> 0
$Msg = MessageBox (" File copy Failed. Please try again." +
" If you continue to have trouble, please call the Helpdesk.","Error")
QUIT