Click here to Skip to main content
15,889,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Finding files Pin
David Crow21-Sep-07 4:39
David Crow21-Sep-07 4:39 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 4:47
Waldermort21-Sep-07 4:47 
GeneralRe: Finding files Pin
David Crow21-Sep-07 5:15
David Crow21-Sep-07 5:15 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 5:30
Waldermort21-Sep-07 5:30 
GeneralRe: Finding files Pin
David Crow21-Sep-07 6:13
David Crow21-Sep-07 6:13 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 6:38
Waldermort21-Sep-07 6:38 
GeneralRe: Finding files Pin
David Crow21-Sep-07 7:23
David Crow21-Sep-07 7:23 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 7:55
Waldermort21-Sep-07 7:55 
DavidCrow wrote:
I thought of that, but I've got files that are a few bytes in length, and they are found by CFileFind.


CfileFind will return the size regardless of which part of the disk it is stored. A more realistic method would be to pass each file into DeviceIoControl and count the cluster/fragment usage. 0 fragments indicates that it is stored in the MFT.

Also, I have just accounted for a further 4GB by giving myself access rights to the "System Volume Information". If you know of a way to do this programaticaly I would be glad to hear.

My next step is to call CreateFile for every file/folder found, if it fails then I should attempt to adjust the access rights. This is where CFindFile fails the most, it gives no indication of where it skipped a file/directory simply because it had no rights.

Waldermort

QuestionRe: Finding files Pin
David Crow21-Sep-07 8:05
David Crow21-Sep-07 8:05 
AnswerRe: Finding files Pin
Waldermort21-Sep-07 8:11
Waldermort21-Sep-07 8:11 
GeneralRe: Finding files Pin
David Crow21-Sep-07 8:17
David Crow21-Sep-07 8:17 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 8:26
Waldermort21-Sep-07 8:26 
GeneralRe: Finding files Pin
David Crow21-Sep-07 8:45
David Crow21-Sep-07 8:45 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 8:55
Waldermort21-Sep-07 8:55 
QuestionRe: Finding files Pin
David Crow21-Sep-07 10:01
David Crow21-Sep-07 10:01 
AnswerRe: Finding files Pin
Waldermort21-Sep-07 21:20
Waldermort21-Sep-07 21:20 
GeneralRe: Finding files Pin
David Crow25-Sep-07 10:55
David Crow25-Sep-07 10:55 
GeneralRe: Finding files Pin
Waldermort25-Sep-07 19:57
Waldermort25-Sep-07 19:57 
Questionhow to search file on remote computer in a particular directory Pin
rajneshmalik19-Sep-07 21:19
rajneshmalik19-Sep-07 21:19 
AnswerRe: how to search file on remote computer in a particular directory Pin
Roger Broomfield19-Sep-07 22:29
Roger Broomfield19-Sep-07 22:29 
QuestionRe: how to search file on remote computer in a particular directory Pin
David Crow20-Sep-07 2:58
David Crow20-Sep-07 2:58 
QuestionHow to create progress dialog box? Pin
AnayKulkarni19-Sep-07 21:08
AnayKulkarni19-Sep-07 21:08 
AnswerRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 21:18
nbugalia19-Sep-07 21:18 
GeneralRe: How to create progress dialog box? Pin
Cedric Moonen19-Sep-07 21:21
Cedric Moonen19-Sep-07 21:21 
GeneralRe: How to create progress dialog box? Pin
nbugalia19-Sep-07 21:42
nbugalia19-Sep-07 21:42 

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.