1030071002
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_e mail\messa ges") Then
fso.DeleteFolder ("C:\tmp_email\messages")
End If
VB6 Error Permission denied run-time error 70
If fso.FolderExists("C:\tmp_e
fso.DeleteFolder ("C:\tmp_email\messages")
End If
ASKER
1 no
2 xp PROFESSIONAL
ADMIN RIGHTS i DO HAVE FULL RIGHTS
2 xp PROFESSIONAL
ADMIN RIGHTS i DO HAVE FULL RIGHTS
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.