Do you happen to know of any low-level APIs to do this? I
know of DeviceIOControl but that is only for hard drive
information, not really for getting file locations. How
does defrag programs do it? I hope that don't read and
translate the FAT or NTFS, I would think there would be an
easier way.
Thanks,
Kory
MSDN Subscriber
-----Original Message-----
I am pretty much sure the .NET framework class libray
doesnt provide detailsof the file to this level. You will have to lower level
API's (if available)and hence use P/Invoke services from .NET.
--
HTH,
Manoj G [.NET MVP]
http://www15.brinkster.com/manoj4dotnet
"Kory Postma" <ko****@microsoft.hotmail.com> wrote in
messagenews:05****************************@phx.gbl... I would like to know if there is anyway to get the exact
file location on a harddrive? For instance, you pass a
filename and you can then get the head, track, sector,
etc.. of the file (and its parts if fragmented)?
It would be best to do this in dotNET, but it isn't
necessary.
Thanks,
Kory
MSDN Subscriber
.