<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>16 Feb 2018 14:17:00 Z</lastBuildDate><pubDate>16 Feb 2018 13:43:00 Z</pubDate><description>Not quite the obvious fclose()!&#13;
&#13;
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.&#13;
&#13;
However in this case when deleting the file I get an error saying "the file is being used by another process".&#13;
&#13;
I have tried disconnecting from the database, using funlock and fclose then fdelete but the file is still being used.&#13;
&#13;
Is there any way to force a file to close so it can be deleted?&#13;
&#13;
Thx</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close/read.awp</link><title>How to force a file to close?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close-64586/read.awp</comments><pubDate>16 Feb 2018 14:17:00 Z</pubDate><description>Sorry just realized! Its the HFControlCentre (WAS) on the server.&#13;
&#13;
Hmm, there is a way round this but very messy. No worries.</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close-64586/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close-64586/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close/read.awp">How to force a file to close?</source><title>Re: How to force a file to close?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close-64585/read.awp</comments><pubDate>16 Feb 2018 14:15:00 Z</pubDate><description>I agree absolutely. The problem is that I don't know what process has opened the files. It is not the service I am running I don…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close-64585/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close-64585/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close/read.awp">How to force a file to close?</source><title>Re: How to force a file to close?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close-64584/read.awp</comments><pubDate>16 Feb 2018 13:50:00 Z</pubDate><description>Hi&#13;
&#13;
the file needs to be closed by the process that did open it with an hclose...&#13;
&#13;
And there are several problems with that:…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close-64584/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close-64584/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/64582-how-force-file-close/read.awp">How to force a file to close?</source><title>Re: How to force a file to close?</title></item></channel></rss>
