PC Review


Reply
Thread Tools Rate Thread

How do I get all entries in root-directory? (FAT32)

 
 
keandi
Guest
Posts: n/a
 
      30th Nov 2007
How do I get all entries in root-directory? (FAT32)

Hi.
I'm making a program that reads all directories and files HDD.
The HDD's format is FAT32.
(This project's very important thing is to read FAT32 format directly.
So I don't use WIN32 API find-file functions (like FindFirstFile())


I use next DIRECTORYENTRY.


typedef struct _FAT_DIRECTORY_ {
BYTE Name[8];
BYTE Extender[3];
BYTE Attribute;
BYTE NTResource;
BYTE CreateTimeTenth;
WORD CreateTime;
WORD CreateDate;
WORD LastAccessDate;
WORD FirstClusterHigh2B;
WORD WriteTime;
WORD WriteDate;
WORD FirstClusterLow2B;
DWORD FileSize;



}FAT_DIRENTRY_, *LPFDIRENTRY_;


I use next LONGFILENAME

typedef struct _FAT_LONG_DIRECTORY_ {
BYTE Order;
BYTE Name1[10];
BYTE Attribute;
BYTE Type;
BYTE CheckSum;
BYTE Name2[12];
WORD FirstClusterLow;
BYTE Name3[4];



}FAT_LONGDIRENTRY, *LPFLONGDIRENTRY_;


I took two tests.
First, I had 10 files in root-directory.
I could read all files(10).

Second, I had 1000 files in root-directory.
I could read only 129 files.


I thought why I couldn't read all files.
Maybe it is because ........


The size of directory entry's cluster is 8192(16 * 512).
So the size is limited as the size.


Second case I need 5 cluster. (1000 files)
So I need rest cluster.
So.... I searched the way.
But.... I couldn't search the way.




Please help me. Please tell me how I get all entries...

 
Reply With Quote
 
 
 
 
Plato
Guest
Posts: n/a
 
      30th Nov 2007
keandi wrote:
>
> How do I get all entries in root-directory? (FAT32)


http://www.bootdisk.com/utility.htm
GENERAL FILE UTILITIES
Folder Content Printers

--
http://www.bootdisk.com/


 
Reply With Quote
 
Andy
Guest
Posts: n/a
 
      30th Nov 2007
What's the purpose of this exercise? Is it a class assignment?

On Thu, 29 Nov 2007 17:55:20 -0800 (PST), keandi <(E-Mail Removed)>
wrote:

>How do I get all entries in root-directory? (FAT32)
>
>Hi.
>I'm making a program that reads all directories and files HDD.
>The HDD's format is FAT32.
>(This project's very important thing is to read FAT32 format directly.
>So I don't use WIN32 API find-file functions (like FindFirstFile())
>
>
>I use next DIRECTORYENTRY.
>
>
>typedef struct _FAT_DIRECTORY_ {
> BYTE Name[8];
> BYTE Extender[3];
> BYTE Attribute;
> BYTE NTResource;
> BYTE CreateTimeTenth;
> WORD CreateTime;
> WORD CreateDate;
> WORD LastAccessDate;
> WORD FirstClusterHigh2B;
> WORD WriteTime;
> WORD WriteDate;
> WORD FirstClusterLow2B;
> DWORD FileSize;
>
>
>
>}FAT_DIRENTRY_, *LPFDIRENTRY_;
>
>
>I use next LONGFILENAME
>
>typedef struct _FAT_LONG_DIRECTORY_ {
> BYTE Order;
> BYTE Name1[10];
> BYTE Attribute;
> BYTE Type;
> BYTE CheckSum;
> BYTE Name2[12];
> WORD FirstClusterLow;
> BYTE Name3[4];
>
>
>
>}FAT_LONGDIRENTRY, *LPFLONGDIRENTRY_;
>
>
>I took two tests.
>First, I had 10 files in root-directory.
>I could read all files(10).
>
>Second, I had 1000 files in root-directory.
>I could read only 129 files.
>
>
>I thought why I couldn't read all files.
>Maybe it is because ........
>
>
>The size of directory entry's cluster is 8192(16 * 512).
>So the size is limited as the size.
>
>
>Second case I need 5 cluster. (1000 files)
>So I need rest cluster.
>So.... I searched the way.
>But.... I couldn't search the way.
>
>
>
>
>Please help me. Please tell me how I get all entries...

 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      30th Nov 2007
keandi <(E-Mail Removed)> wrote:


>I took two tests.
>First, I had 10 files in root-directory.
>I could read all files(10).
>
>Second, I had 1000 files in root-directory.
>I could read only 129 files.


So what condition are you checking to determine that you've finished
reading all the entries? Clearly something is wrong there. You've
given us no information on that, so there's no way we can help you.

The question really doesn't belong here, it belongs in a programming
group. Most XP installations don't even use FaT32.

--
Tim Slattery
MS MVP(Shell/User)
(E-Mail Removed)
http://members.cox.net/slatteryt
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory Named ROOT and file named Root =?Utf-8?B?V2F5bmUgS2lkZA==?= Windows XP Help 0 25th Nov 2004 01:15 PM
XP Root Class Registry Entries for IUCtl Andy Windows XP Setup 0 14th Aug 2004 03:36 AM
question regarding overriding of web.config in the root directory..in a web app in a virtual directory dotnetprogram Microsoft ASP .NET 1 27th Dec 2003 06:02 AM
copying files, files either end up in target directory or root directory of disk Popcorn Microsoft Windows 2000 File System 0 16th Dec 2003 06:40 AM
Root directory hiding all entries James Cameron Microsoft Windows 2000 File System 2 1st Dec 2003 03:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:07 PM.