eJan Posted February 17, 2006 Share 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 Link to comment Share on other sites More sharing options...
Valuater Posted February 17, 2006 Share Posted February 17, 2006 maybe use drivegetstatus() to verify that the drive is connected ... before you try to copy 8) Link to comment Share on other sites More sharing options...
eJan Posted February 17, 2006 Author Share 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? Link to comment Share on other sites More sharing options...
Valuater Posted February 17, 2006 Share Posted February 17, 2006 (edited) if Not FileExists("E:\Tweak") then message box exitLoop EndIf yep...OK 8) Edited February 17, 2006 by Valuater Link to comment Share on other sites More sharing options...
Valuater Posted February 17, 2006 Share Posted February 17, 2006 i use this ; check if exists @homedrive\temp\ DirGetSize(@HomeDrive & "\Temp\") If @error= 1 Then DirCreate(@HomeDrive & "\Temp\") EndIf 8) Link to comment Share on other sites More sharing options...
eJan Posted February 17, 2006 Author Share 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. Link to comment Share on other sites More sharing options...
Valuater Posted February 17, 2006 Share Posted February 17, 2006 sorry i didn't find any error codes for DirCopy() ( or know many ) 8) Link to comment Share on other sites More sharing options...
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