CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009

    Question get starting sector of a file on a fat32 drive

    hi guys can anyone provide me with any code to get the starting sector of a file on disk drive...i want to read the file using low level sector read and modify the file attributes..but on a fat32 or any fat file system the files ar arranged in FAT table ...i want to get the sector of the entry of file in /fat table of the file system as the attributes are saved in the FAT table entry of each file .can any one provide me with nay help....
    i am able to read the fle with createFile and ReadFile
    sector wise....i can search for the sector manually but it will take a lot of time so i was expecting for a faster direct and easier way to get starting sector of file ....any one plzzzz help if you can

  2. #2
    Join Date
    Aug 2000
    Essex, Uk

    Re: get starting sector of a file on a fat32 drive

    system management and WMI might do it. This might also help to get you going on some of the parameters http://msdn.microsoft.com/en-us/libr...79(VS.85).aspx
    If you find my answers helpful, dont forget to rate me

  3. #3
    Join Date
    Mar 2009

    Talking Re: get starting sector of a file on a fat32 drive

    thnx a lot for the rep;yy

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.