Jump to content

why DirCopy produce error


Recommended Posts

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

Link to comment
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:

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...