Jump to content
Sign in to follow this  

why DirCopy produce error

Recommended Posts



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


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

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

If (@error = 0) Then

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



Share this post

Link to post
Share on other sites

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


If @Error Then

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


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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.