jimmyjmmy Posted October 30, 2008 Posted October 30, 2008 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
LizardLord Posted October 31, 2008 Posted October 31, 2008 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now