hello do you know how to force-delete a file, say a loaded .dll or a running .exe i know that windows locks it...and the file is actually loaded to memory so it doesn't really need it(am i wrong?) thanks
Posted on 2001-05-19 15:18:00 by Arkon
if you want to delete a exe oder dll that is currently loaded into memory you have to either terminate/unload it first (which my not always be possible) or have it deleted on windows startup (you need to create a wininit.ini file in your windows directory). sample wininit.ini:

Posted on 2001-05-19 17:21:00 by Tola
ahh cool i haven't known that way well anyone knows how to do it programmatically?
Posted on 2001-05-22 13:37:00 by Arkon
The MoveFileEx function allows you to specify a flag MOVEFILE_DELAY_UNTIL_REBOOT. If the filename is null, it will perform a Delete! regards
Posted on 2001-05-22 14:43:00 by gfalen
well...i didn't ask it well enough how do i delete a file immediately and programmatically? the MoveFileEx will delete it on next booting...
Posted on 2001-05-22 15:16:00 by Arkon