Re: Troubles with Mkdir - WAS: Folder locked when using Open Statement twice
- From: "Robert Morley" <rmorley@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 6 Dec 2005 21:53:52 -0500
Are you using Dir() at any point in your code to check if the file exists?
'like this?
blnDirExists = Dir$("C:\temp\testlock", vbDirectory)
blnFileExists = Dir$("C:\temp\testlock\test.ini")
If either of those is true, Dir() itself is what's locking the file/folder.
You must issue another Dir() with no parameters so that it continues getting
then next file (which there shouldn't be one, since you didn't use any
wildcards). Then it knows it's done, and will release the lock.
Rob
.
- Follow-Ups:
- References:
- Prev by Date: Re: Troubles with Mkdir - WAS: Folder locked when using Open Statement twice
- Next by Date: Re: Troubles with Mkdir - WAS: Folder locked when using Open Statement twice
- Previous by thread: Re: Troubles with Mkdir - WAS: Folder locked when using Open Statement twice
- Next by thread: Re: Troubles with Mkdir - WAS: Folder locked when using Open Statement twice
- Index(es):
Relevant Pages
|