|
-
Dec 4th, 2012, 12:13 PM
#2
Re: Permission Denied When Trying To Delete A File
Found nothing wrong with your code...works fine for me. I am working in the app.path, to which I have read/write privileges.
Are you using a path to which you might not have those privileges? Try app.path first. If that doesn't help, use VB's Sleep command (say 1 sec) before the kill command. (Include this line in your declarations for Sleep: Private Declare Sub Sleep Lib "kernel32.dll" (ByVal dwMilliseconds As Long)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|