News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Reading directory area of hard disc

Started by jose, October 11, 2005, 06:31:17 PM

Previous topic - Next topic

jose

Dear friends
              Can anybody give me the MASM code for reading directory area of Hard disk with FAT32

Tedd

No snowflake in an avalanche feels responsible.


rags

God made Man, but the monkey applied the glue -DEVO

QvasiModo

jose: You'll normally want to stay away from direct hardware access, for a matter of compatibility and ease of programming, unless you're writing your own device driver. Or unless you're writing something evil you shouldn't be writing. ::)

P1

Josè,

Welcome to MASMforum!    :U

Read around the different areas and get a feel for the place.   ::)

Read the help files and tutorials of MASM32.  'Search' & Google are your friends for programming.  Then ask your questions.

For your first three posts you have ask some interesting questions.  Please help us to get to know you better.

Regards,  P1  :8)


JFG

I presume you want to make a program that can get information about files and directories.  You do not need direct access to that data on the hard drive.  Assuming you want your program to use Windows, you can use Windows functions to do just about anything you could want to do with files and directories - at least within the boundaries of allowed access priviliges.  (To get information about these, I suggest you look up information on that in MSDN.  If you don't have an MSDN Library CD, and I suppose you don't, you can look in msdn.microsoft.com.)  These functions are easy to use too; the most complicated thing you have to do when using them is make sure that your input/output buffers are big enough to hold all the information returned by Windows.  I don't know what exactly your options are if you want your program to run on DOS, but I am certain that DOS provides services for accomplishing the same thing.  Either way, you should also avoid designing your program with the assumption that the filing system used by the host operating system is FAT32.  FAT32 is not the only filing system used by Microsoft operating systems.  By now, all the new Microsoft operating systems use NTFS - the filing system originally used only by Windows NT - and the differences between NTFS and FAT32 are at least big enough that if you make a program dependent on the smaller details of how FAT32 does things, it may not work well if the host operating system uses NTFS instead.