I would like to delete a file in use, but I cannot figure out how to do it. Obviously DeleteFile() won't work, so I figured I somehow have to retrieve a list of processes currently using the file, close the file handle from these processes (or terminate them entirely) then delete the file. Then I realised there are probably lots of undocumented kernel (ntdll etc) functions that will delete a file no matter what.

Ideas and comments appreciated. Thanks. :)
Posted on 2004-08-03 12:45:38 by Psionicist
Posted on 2004-08-03 15:39:46 by f0dder
Boot in dos type del Then file location exp del C:WINDOWSTrash.exe
Posted on 2004-08-04 05:17:39 by suppy376