Ronnie MacGregor
2008-11-24 20:28:06 UTC
On Mon, 24 Nov 2008 19:22:28 +0100
You are probably trying to delete the directory before Windows has finished the
actual deletion of the files. Try introducing a delay.
Beware of users who have disc caching switched on for disk writes.
I have a routine that erases certain files form a folder
it checks if there are any left files on the folder.
If the folder is empty it tries to delete it but it does not do it
since it says it is in use....
How can I delete it, besides putting it on a list and next time
that I enter the application erase it ?
Most probably a timing issue.it checks if there are any left files on the folder.
If the folder is empty it tries to delete it but it does not do it
since it says it is in use....
How can I delete it, besides putting it on a list and next time
that I enter the application erase it ?
You are probably trying to delete the directory before Windows has finished the
actual deletion of the files. Try introducing a delay.
Beware of users who have disc caching switched on for disk writes.
--
Ronnie MacGregor
Scotland
Ronnie at
dBASEdeveloper
dot co dot uk
www.dBASEdeveloper.co.uk
Ronnie MacGregor
Scotland
Ronnie at
dBASEdeveloper
dot co dot uk
www.dBASEdeveloper.co.uk