eJan Posted February 17, 2006 Posted February 17, 2006 I need help with failure or success in DirCopy() I'm tring to copy dir to removable HD but when the HD is unplugged it looks like coping were O.K. DirCopy("E:\Tweak", "G:\Local Disk E\Tweak", 1) If @error Then MsgBox(0, "", "Error") Exit EndIf
Valuater Posted February 17, 2006 Posted February 17, 2006 maybe use drivegetstatus() to verify that the drive is connected ... before you try to copy 8)
eJan Posted February 17, 2006 Author Posted February 17, 2006 Thanks Valuater Will try, but same thing if source dir doesn't exist. Maybe You can point me how to use @error flag correctly?
Valuater Posted February 17, 2006 Posted February 17, 2006 (edited) if Not FileExists("E:\Tweak") then message box exitLoop EndIf yep...OK 8) Edited February 17, 2006 by Valuater
Valuater Posted February 17, 2006 Posted February 17, 2006 i use this ; check if exists @homedrive\temp\ DirGetSize(@HomeDrive & "\Temp\") If @error= 1 Then DirCreate(@HomeDrive & "\Temp\") EndIf 8)
eJan Posted February 17, 2006 Author Posted February 17, 2006 O.K. thanks again, I will try in the morning with more If... - they killing me but ..that's only good way.
Valuater Posted February 17, 2006 Posted February 17, 2006 sorry i didn't find any error codes for DirCopy() ( or know many ) 8)
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