| Next: Fat32 file or folder limits |
| Author |
Message |
Srinand External

Since: Apr 21, 2006 Posts: 2
|
Posted: Fri Apr 21, 2006 10:15 pm Post subject: Undelete a file 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 |
|
 |
Srinand External

Since: Apr 21, 2006 Posts: 2
|
Posted: Fri Apr 21, 2006 10:37 pm Post subject: Re: Undelete a file [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 |
|
 |
Jeff Richards External

Since: Mar 14, 2004 Posts: 1333
|
Posted: Sat Apr 22, 2006 3:24 pm Post subject: Re: Undelete a file [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 DeleteThis @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 |
|
 |
Jeff Richards External

Since: Mar 14, 2004 Posts: 1333
|
Posted: Sun Apr 23, 2006 7:57 am Post subject: Re: Undelete a file [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 DeleteThis @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 |
|
 |
msegura501

Joined: Nov 25, 2007 Posts: 1
|
Posted: Sun Nov 25, 2007 9:54 am Post subject: undelete files [Login to view extended thread Info.] |
|
|
Hi,
Have you tried FilesLost?
They can recover files deleted in a FAT32 and NTFS.
Hope this helps.
Cheers,
Marc |
|
| Back to top |
|
 |
|