Re: Copy Script

Tech-Archive recommends: Fix windows errors by optimizing your registry



Why don't you use the error handling in vbs (or have I miss-understood
your problem)?

I do this kind of thing:

On Error Resume Next
oFolder.Copy sRelativeBackupPath,true
If Err Then
'details are in Err.Number and Err.Description
'log the error
Else
'you can log success here if you wish
End If
On Error Goto 0

'Where there was an error or not, we can carry on here

Tim.

.



Relevant Pages

  • Re: Thoughts on current error handling best practice with VBScript
    ... Anthony Jones also recommends not using VBS if you're concerned about ... Dim sVal ... impression about how much of an afterthought error handling has been ... you've run the script from an open command window, using cscript, Ctrl- ...
    (microsoft.public.scripting.vbscript)
  • Re: Thoughts on current error handling best practice with VBScript
    ... And neither is "error handling" - my main ... Anthony Jones also recommends not using VBS if you're concerned about ... you've run the script from an open command window, using cscript, Ctrl- ... started the script from the Windows shell, ...
    (microsoft.public.scripting.vbscript)
  • Error Handling
    ... Exit Function ... What I'm confused on is error handling in vbs. ... processing the script, which I don't want it to do. ...
    (microsoft.public.windows.server.scripting)
  • RE: Error Handling
    ... > certain how error handling works in VBS. ... > Exit Function ... > What I'm confused on is error handling in vbs. ... > processing the script, which I don't want it to do. ...
    (microsoft.public.windows.server.scripting)