HTFC Forums

H.T.F.C.

How To Fix Computers





Go Back   HTFC Forums > Software Newsgroups > Windows XP

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1  
Old 11-30-2007, 01:55 AM
keandi
 
Posts: n/a
Default How do I get all entries in root-directory? (FAT32)

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
Sponsored Links
  #2  
Old 11-30-2007, 06:14 AM
Plato
 
Posts: n/a
Default Re: How do I get all entries in root-directory? (FAT32)

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
  #3  
Old 11-30-2007, 08:02 AM
Andy
 
Posts: n/a
Default Re: How do I get all entries in root-directory? (FAT32)

What's the purpose of this exercise? Is it a class assignment?

On Thu, 29 Nov 2007 17:55:20 -0800 (PST), keandi <keandi@lycos.co.kr>
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
  #4  
Old 11-30-2007, 01:45 PM
Tim Slattery
 
Posts: n/a
Default Re: How do I get all entries in root-directory? (FAT32)

keandi <keandi@lycos.co.kr> 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)
Slattery_T@bls.gov
http://members.cox.net/slatteryt
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
*.sqm files in root directory Steve T Windows Vista 4 09-09-2007 01:16 AM
Vista Root Directory Folders John Monahan Windows Vista Installation 1 05-27-2007 05:49 AM
Unusual Vista named folders in drive root directory John Monahan Windows Vista 0 05-24-2007 01:35 AM
Strange files in my root directory LJ Windows XP 3 03-29-2007 03:39 PM
FTP root directory Willie XP Networking 0 06-04-2004 01:55 PM


All times are GMT. The time now is 09:38 PM.


Powered by vBulletin® Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© 2004 - 2007 Web-S-Sense Pty. Ltd. Usenet and forums posts © their respective authors.
Ad Management by RedTyger