Jump to content

Recommended Posts

Posted

Hi,

Can someone explain why the following script produce error even though the whole dir was successfully copied.

Thanks

;;;; script ;;;;;;;;;;;;;;;;;;;;;;;

DirCopy ("d:\testing","d:\testing2",1)

If (@error = 0) Then

MsgBox(0,"error","error copying")

Exit

EndIf

Posted

You Messed up when Typing the Detection Of an Error, If it only reports one @Error just put "If @Error then" Example is Below:

DirCopy("C:\Test","D:\Test",1)

If @Error Then

Msgbox(-1,"Error","Error Copying Directory: Source Directory not found")

EndIf

This Script seemed to work fine on my PC.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...