Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To Perminantly Delete???

Status
Not open for further replies.

datac5155

Programmer
Apr 8, 2002
7
US
Does anyone know how to perminantly delete a file? using the INT21h delete doesnt remove the entry from the disk, just marks the space as free. But I found that if you try to resave something under the same name (after a delete) the program is unable to read the file back in again (I get all 5's). I assume that this is the 0E5h code or something.

Anyway, I would appreciate any help.

DataC5155
 
As far as I know that IS the proper way of deleting the file. It's not completely deleted but the FAT chain and directory entries are removed.

WHICH Int21h delete are you using? FCB or handle type?

Was the file open at deletion time?
"Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
 
It is windows. You can call me crazy, but if I run the program from a pure DOS mode, there is no problem. From a DOS box, it errors on the second open (after a save and delete).
Must have something to do with the recycle bin or something, it wont let it access the file or something funky.
Thanks anyway.

DataC5155 DataC5155

"...NO FATE..."
 
Well... you can try checking if the file is in the recycle bin... "Information has a tendency to be free. Which means someone will always tell you something you don't want to know."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top