![]() |
Get File Name |
Post Reply
|
| Author | |
avirat
Newbie
Joined: 30 May 2008 Status: Offline Points: 34 |
Post Options
Thanks(0)
Quote Reply
Topic: Get File NamePosted: 30 May 2008 at 2:52am |
|
Hi Devs,
If we have the LCN (Logical Cluster Number) and is there any way to get the which file resides on that particular LCN? |
|
|
Avi
|
|
![]() |
|
dirbase
Senior Member
Joined: 26 March 2008 Status: Offline Points: 496 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 June 2008 at 8:07am |
|
THis is what I would do:
Download the MS OEM support tools from here. Extract nfi.exe Open a command box. Run the following command <path to nfi.exe> <letter of the drive where the file resides> <logical sector number> You'll then get the name of the file. The logical sector number could be obtained by multipying the LCN by the number of sectors in a cluster (8 if your volume size is greater than 2 GB) |
|
![]() |
|
avirat
Newbie
Joined: 30 May 2008 Status: Offline Points: 34 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 June 2008 at 9:08pm |
|
thanks for reply..
I want to get the file name programatically.. Is there any native API that do the same thing... |
|
|
Avi
|
|
![]() |
|
dirbase
Senior Member
Joined: 26 March 2008 Status: Offline Points: 496 |
Post Options
Thanks(0)
Quote Reply
Posted: 04 June 2008 at 10:38pm |
|
Check out: NtFsControlFile, NtQueryInformationFile also DeviceIoControl
Edited by dirbase - 04 June 2008 at 11:28pm |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |