Link to home
Start Free TrialLog in
Avatar of 1030071002
1030071002Flag for United States of America

asked on

VB6 Error Permission denied run-time error 70

why am i getting this error when I try to delete the folder when the folder is empty
VB6 Error Permission denied run-time error 70

If fso.FolderExists("C:\tmp_email\messages") Then
   fso.DeleteFolder ("C:\tmp_email\messages")
End If
Avatar of krishrr
krishrr
Flag of India image

Please reply the following to find the right solution for you.

1. Are you able to delete that folder manually?
2. What OS you are using?
3. In which login, you tried to delete the folder? With admin rights or restricted access?

Note:
Suppose the folder is created in admin login, and with user login if you try to delete, you will find this issue. First make sure you ve full rights to the folder.

Try creating new folder and then try to delete the same folder in your code.
OR
Change the Drive C to some other and try because in some systems there may be restriction to access C drive.






Avatar of 1030071002

ASKER

1 no
2 xp PROFESSIONAL
ADMIN RIGHTS i DO HAVE FULL RIGHTS
ASKER CERTIFIED SOLUTION
Avatar of nirojexpert
nirojexpert
Flag of Nepal image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial