Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

How to force a file to close? (3 replies)

$
0
0
Not quite the obvious fclose()!

I am running a process on a web server and want to delete files in a folder but only fic/mmo/ndx. I use flist to get the files in the folder then loop round the result and deleting any files with the appropriate filter. I use this code all the time to do various things.

However in this case when deleting the file I get an error saying "the file is being used by another process".

I have tried disconnecting from the database, using funlock and fclose then fdelete but the file is still being used.

Is there any way to force a file to close so it can be deleted?

Thx

Viewing all articles
Browse latest Browse all 1914

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>