Jump to content
Sign in to follow this  
jimmyjmmy

why DirCopy produce error

Recommended Posts

jimmyjmmy

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

Share this post


Link to post
Share on other sites
LizardLord

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.

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

×