Unconditional File Delete

  • Thread starter Thread starter Stan
  • Start date Start date
S

Stan

Does anyone know of a file utility or hack which will allow for the
unconditional deletion of a file at any time? I used to have a
program for DOS written in assembly that would delete any file,
regardless of the state, flags, or who had it open, and I need
something similar for windows due to a few poorly behaved applications
not closing properly. Any info appreciated.
 
You're asking alot given that the NT operating system and file system is
designed to prevent exactly that from occuring. You have more latitude
if you ran a FAT32 system.
 
if you press shift-delete the file will bypass the trash
and delete immediately.
 
George said:
Not if the file is open.

But you can use InUse.exe from the NT res kit to
replace the file with a different file - such as
a 0 byte text file, reboot, then delete the replacement
file.
 
Rob Stow said:
But you can use InUse.exe from the NT res kit to
replace the file with a different file - such as
a 0 byte text file, reboot, then delete the replacement
file.

If I could reboot, the file wouldn't be open when I restarted. I need
something that can delete an open file, while it has open file
handles. After talking to a VB developer friend of mine he told me he
can programmatically force file handles closed (with admin access) and
effectively release the file so it can be deleted. The effect of this
to an application would be similar to a network drive suddenly
becoming unavailable, and the user experience would be just the same.
If he gives me source code I'll put it into this thread for anyone
searching for a similar utility.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top