Click here to Skip to main content
14,974,250 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Finding files Pin
David Crow21-Sep-07 8:05
MemberDavid Crow21-Sep-07 8:05 
AnswerRe: Finding files Pin
Waldermort21-Sep-07 8:11
MemberWaldermort21-Sep-07 8:11 
GeneralRe: Finding files Pin
David Crow21-Sep-07 8:17
MemberDavid Crow21-Sep-07 8:17 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 8:26
MemberWaldermort21-Sep-07 8:26 
GeneralRe: Finding files Pin
David Crow21-Sep-07 8:45
MemberDavid Crow21-Sep-07 8:45 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 8:55
MemberWaldermort21-Sep-07 8:55 
QuestionRe: Finding files Pin
David Crow21-Sep-07 10:01
MemberDavid Crow21-Sep-07 10:01 
AnswerRe: Finding files Pin
Waldermort21-Sep-07 21:20
MemberWaldermort21-Sep-07 21:20 
you would need to use the FSCTL_GET_EXTENT_BUFFERS. The trouble is with this operation is that you don't know how large the buffer should be. I wrapped the call up in a class with the buffer as a static member. Each time the buffer is too small, I double the size and keep calling until successful.

The Extent count indicates how many fragments the file has, 0 indicates that it is located in the MFT. Each extent returned will then tell you how many clusters each fragment has. By adding these and multiplying by your drives 'bytes per cluster' you will find out exactly how much space a particular file/folder is taking.

Also be aware of NT's compressed runs which is indicated by a startLCN of -1. I still haven't managed to get my head around what this actualy means.

Waldermort

GeneralRe: Finding files Pin
David Crow25-Sep-07 10:55
MemberDavid Crow25-Sep-07 10:55 
GeneralRe: Finding files Pin
Waldermort25-Sep-07 19:57
MemberWaldermort25-Sep-07 19:57 
Questionhow to search file on remote computer in a particular directory Pin
rajneshmalik19-Sep-07 21:19
Memberrajneshmalik19-Sep-07 21:19 
AnswerRe: how to search file on remote computer in a particular directory Pin
Roger Broomfield19-Sep-07 22:29
MemberRoger Broomfield19-Sep-07 22:29 
QuestionRe: how to search file on remote computer in a particular directory Pin
David Crow20-Sep-07 2:58
MemberDavid Crow20-Sep-07 2:58 
QuestionHow to create progress dialog box? Pin
AnayKulkarni19-Sep-07 21:08
MemberAnayKulkarni19-Sep-07 21:08 
AnswerRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 21:18
Membernbugalia19-Sep-07 21:18 
GeneralRe: How to create progress dialog box? Pin
Cedric Moonen19-Sep-07 21:21
MemberCedric Moonen19-Sep-07 21:21 
GeneralRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 21:42
Membernbugalia19-Sep-07 21:42 
GeneralRe: How to create progress dialog box? Pin
Cedric Moonen19-Sep-07 21:51
MemberCedric Moonen19-Sep-07 21:51 
GeneralRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 22:05
Membernbugalia19-Sep-07 22:05 
GeneralRe: How to create progress dialog box? Pin
Cedric Moonen19-Sep-07 22:40
MemberCedric Moonen19-Sep-07 22:40 
GeneralRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 22:56
Membernbugalia19-Sep-07 22:56 
GeneralRe: How to create progress dialog box? Pin
Cedric Moonen19-Sep-07 23:04
MemberCedric Moonen19-Sep-07 23:04 
GeneralRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 23:13
Membernbugalia19-Sep-07 23:13 
AnswerRe: How to create progress dialog box? Pin
David Crow20-Sep-07 2:56
MemberDavid Crow20-Sep-07 2:56 
Questionhow to get the value of a check box in a dialog box Pin
Dhiraj kumar Saini19-Sep-07 20:29
MemberDhiraj kumar Saini19-Sep-07 20:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.