WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Undelete a file

 
   Home -> Windows Other -> Fat32 RSS
Next:  Fat32: Fat32 file or folder limits  
Author Message
Srinand

External


Since: Apr 21, 2006
Posts: 2



(Msg. 1) Posted: Fri Apr 21, 2006 10:15 pm
Post subject: Undelete a file Add to elertz
Archived from groups: microsoft>public>win98>fat32 (more info?)

Hello, Am actually trying to write a program to undelete a file in
windows. For that I need to get the details of the files that are
deletd. Coudl someoen give me some inputs as to how should I do that.
Just wanted to know where will that list be stored in the clusters. I
mean in which table ? In the FAT, or in Date Area ? And also what would
be the offset to get that location. Kindly help me out asap ..
Back to top
Login to vote
Srinand

External


Since: Apr 21, 2006
Posts: 2



(Msg. 2) Posted: Fri Apr 21, 2006 10:37 pm
Post subject: Re: Undelete a file Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for the quck reply richards. But how do I get the offset of the
first directory entry in a partition ? And from thereafter how do i get
offsets of the next directory entry ?
Back to top
Login to vote
Jeff Richards

External


Since: Mar 14, 2004
Posts: 2352



(Msg. 3) Posted: Sat Apr 22, 2006 3:24 pm
Post subject: Re: Undelete a file Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You should be looking in the directory, not the FAT. The directory entries
for deleted files have the initial character of the filename overwritten.
See, for instance:
http://www.seas.ucla.edu/classes/mkampe/cs111.sq05/docs/dos.html
(Section 4)
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Srinand" <srinandsk.RemoveThis@gmail.com> wrote in message
news:1145682914.453654.198340@g10g2000cwb.googlegroups.com...
> Hello, Am actually trying to write a program to undelete a file in
> windows. For that I need to get the details of the files that are
> deletd. Coudl someoen give me some inputs as to how should I do that.
> Just wanted to know where will that list be stored in the clusters. I
> mean in which table ? In the FAT, or in Date Area ? And also what would
> be the offset to get that location. Kindly help me out asap ..
>
Back to top
Login to vote
Jeff Richards

External


Since: Mar 14, 2004
Posts: 2352



(Msg. 4) Posted: Sun Apr 23, 2006 7:57 am
Post subject: Re: Undelete a file Add to elertz [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

A DOS directory is a file (of a special type) that contains a series of
fixed sized (32 byte) directory entries. The location of the root directory
is specified in the BIOS parameter block (by default, it follows the FATs).
The root directory contains references to sub directories as files.

See, for instance:
http://support.microsoft.com/kb/q140418/
http://www.pcguide.com/ref/hdd/file/fat.htm
The code that calculates the location of the root directory (as an LBA) is
here:
http://www.ata-atapi.com/hiwdos.htm
--
Jeff Richards
MS MVP (Windows - Shell/User)
"Srinand" <srinandsk.TakeThisOut@gmail.com> wrote in message
news:1145684226.493052.266850@t31g2000cwb.googlegroups.com...
> Thanks for the quck reply richards. But how do I get the offset of the
> first directory entry in a partition ? And from thereafter how do i get
> offsets of the next directory entry ?
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Windows Other -> Fat32 All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
  Windows Other
 Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET