Click here to Skip to main content
14,920,559 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Finding files Pin
David Crow21-Sep-07 4:39
MemberDavid Crow21-Sep-07 4:39 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 4:47
MemberWaldermort21-Sep-07 4:47 
GeneralRe: Finding files Pin
David Crow21-Sep-07 5:15
MemberDavid Crow21-Sep-07 5:15 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 5:30
MemberWaldermort21-Sep-07 5:30 
GeneralRe: Finding files Pin
David Crow21-Sep-07 6:13
MemberDavid Crow21-Sep-07 6:13 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 6:38
MemberWaldermort21-Sep-07 6:38 
GeneralRe: Finding files Pin
David Crow21-Sep-07 7:23
MemberDavid Crow21-Sep-07 7:23 
GeneralRe: Finding files Pin
Waldermort21-Sep-07 7:55
MemberWaldermort21-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
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 
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 

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.