Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have worked in FAT file system in which i could get memory location of a file(in the disk) using 8086 assembly language programming int 25h interrupt. How to get memory location of a file in NTFS. My search over the net found that stat system call is used to get all file attributes in linux. I want it on windows platform. Please tell me such interrupt.
Posted
Comments
Sergey Alexandrovich Kryukov 21-May-12 11:53am    
What is this, a "file memory location"? What do you mean by "memory" here?
--SA
Richard MacCutchan 21-May-12 12:28pm    
I don't think this information is available in NTFS file systems as it is controlled by the file system drivers. Perhaps you could expand your question and explain what you are trying to achieve.
Member 8456001 22-May-12 3:10am    
32 byte record is associated with each file and directory of FAT file system(usually found in floppy disk). its second last entry is of starting clustor number of file. This entry is of 4 bytes. We call it as memory location of file. If no clustor in the disk is corrupted then file is stored continuously from that particular memory location. We can get this memory location (4 bytes data) using assembly language interrupt int 25h. Now, Tell me such interrupt for NTFS file system available in any language.
TorstenH. 22-May-12 4:06am    
This is not even a JAVA task - this is something so much more basic, I guess you should use some assembly for that.

By the way - WHY is it needed to find a location in the memory?
JackDingler 22-May-12 17:28pm    
A Google search of 'ntfs layout', provided all of the technical details I would ever need.

1 solution

While Jack has a good point you may have a look at Windows NTFS filesystem internals[^] and Defragmenting Files[^]

Best regards
Espen Harlinn
 
Share this answer
 
Comments
VJ Reddy 23-May-12 1:54am    
Good references. 5!
Espen Harlinn 23-May-12 4:31am    
Thank you VJ :-D
Sandeep Mewara 25-May-12 0:58am    
Good link. 5!
Espen Harlinn 25-May-12 3:31am    
Thank you, Sandeep :-D
Sandeep Mewara 25-May-12 15:29pm    
BTW, I published a tip last week, do have a look at it and share your comments: http://www.codeproject.com/Tips/384425/Server-side-Delimiters-in-ASP-NET

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900