Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 11-29-2007, 06:00 PM
keandi
Newsgroup Contributor
 
Posts: n/a
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...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 11-29-2007, 06:00 PM
  #2 (permalink)  
Old 11-29-2007, 10:20 PM
Plato
Newsgroup Contributor
 
Posts: n/a
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/


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 11-30-2007, 12:10 AM
Andy
Newsgroup Contributor
 
Posts: n/a
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...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 11-30-2007, 05:50 AM
Tim Slattery
Newsgroup Contributor
 
Posts: n/a
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

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 On


Similar Threads
Thread Thread Starter Forum Replies Last Post
*.sqm files in root directory Steve T Windows Vista 4 09-08-2007 05:20 PM
Unusual Vista named folders in drive root directory John Monahan Windows Vista 0 05-23-2007 05:40 PM
Strange files in my root directory LJ Windows XP 3 03-29-2007 06:30 AM
logfiles created in root directory Joye Windows XP 8 03-08-2007 01:00 PM
Could you give me the directory listing of the root of the TabletPC CD? Juan I. Cahis Windows XP Tablet PC Newsgroup 0 05-30-2004 11:35 PM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 02:06 AM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0