msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Deleted Files

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS
Author Message
will f



Joined: 04 Oct 2007
Posts: 3

PostPosted: Sat Jul 22, 2006 3:05 pm    Post subject: Deleted Files Reply with quote

Greetings.

Can anyone tell me how Windows deletes files? I know that the file is
somehow marked. Does that mean the file's entry in the file allocation table
is marked, or is the file itself marked with some kind of token character
that's added to the beginning of the file? What is the character that is
used for marking the file? Is the character added to the file, or it is
added to the beginning of the file name?

Does Microsoft document Windows' file deletion mechanism anywhere, and is
there an API that can be used to find these marked files?

Any help is appreciated.

Thanks.

- will f

Archived from group: microsoft>public>vb>dos
Back to top
View user's profile Send private message
Stephen Howe



Joined: 04 Oct 2007
Posts: 59

PostPosted: Tue Jul 25, 2006 7:06 pm    Post subject: Re: Deleted Files Reply with quote

This post is off-topic.
The newsgroup is for Visual BASIC for DOS.

> Can anyone tell me how Windows deletes files? I know that the file is
> somehow marked.

You don't know that. It is property of the file system rather than Windows.
That was true for FAT but not necessarily true for subsequent file systems
(FAT32, NTFS)

> Does that mean the file's entry in the file allocation table
> is marked, or is the file itself marked with some kind of token character
> that's added to the beginning of the file? What is the character that is
> used for marking the file? Is the character added to the file, or it is
> added to the beginning of the file name?

For FAT, the character marked the files directory entry as deleted.
The clusters that make up the file were marked as unallocated.
So whether you get back the original file depended on whether those clusters
were used for some other subsequent file. If so then tough luck - the file
is gone, all you have is the directory entry which tells things like file
size, last modified date, etc.

> Does Microsoft document Windows' file deletion mechanism anywhere, and is
> there an API that can be used to find these marked files?

See above

Stephen Howe

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
vbdos - run time files Hi, Whats the best way to compile a vbdos exe, I noticed that if I use runtime option, my main exe becomes very small and then VBDRT10E.EXE is needed with the exe to run, My file is about 200k if i compile it as a full exe with runtime inside it and its

Reading ancient QB/QBX source files Hi -- Anyone have any good ideas for recoving "compressed" QB/QBX source (*.BAS) files? I have managed to get a copy of QuickBasic v4.5 running, and when I attempt to load them in there, I'm told: QuickBASIC is attempting to load a binary file and does n

Exclude list of files from a folder when i run dos command Hi All Can somone please help in how to exclude a list of files from a folder using a dir command Thanks heaps

Row Handle referred to a deleted row or row marked for delet I have a recordset at Client Side Afterwards the clients delete 2 rows As i have to maintain the closing balance i filter the recordset when the Recordset is sent to the Business tier with the and as we get the deleted records also

missing .dll files in DirectX Files in Diagnostics Tool I have the latest DirectX 9.0c but it says several files are missing i.e. also I have tracked them down and they
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group