Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run Time Error 75 Path File Access Error

Status
Not open for further replies.

Razor1

IS-IT--Management
Nov 21, 2002
81
US
I create a directory on the C: drive and can not delete it.

The code:

strFolder = "c:\Test"

mkdir strFolder
Load files into directory
Process Files
rmdir strFolder

I have also tried

strFolder = "c:\Test"

mkdir strFolder
Load files into directory
Process Files
Kill strFolder & "\*.*"
rmdir strFolder

Either way I get: "Run Time Error 75 Path File Access Error"

Thanks for any help.





Razor1
 
It looks like it should work. Try putting a small delay (say 3-5 seconds) after the files are deleted and before removing the directory.

Greg
People demand freedom of speech as a compensation for the freedom of thought which they seldom use. Kierkegaard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top