Click here to Skip to main content
15,888,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: hide the file or folder Pin
sarfaraznawaz24-Mar-11 2:44
sarfaraznawaz24-Mar-11 2:44 
GeneralRe: hide the file or folder Pin
sarfaraznawaz24-Mar-11 2:59
sarfaraznawaz24-Mar-11 2:59 
GeneralRe: hide the file or folder Pin
Richard MacCutchan24-Mar-11 5:43
mveRichard MacCutchan24-Mar-11 5:43 
GeneralRe: hide the file or folder Pin
sarfaraznawaz24-Mar-11 18:31
sarfaraznawaz24-Mar-11 18:31 
GeneralRe: hide the file or folder Pin
Richard MacCutchan24-Mar-11 23:54
mveRichard MacCutchan24-Mar-11 23:54 
GeneralRe: hide the file or folder Pin
sarfaraznawaz25-Mar-11 0:55
sarfaraznawaz25-Mar-11 0:55 
GeneralRe: hide the file or folder Pin
Richard MacCutchan25-Mar-11 1:05
mveRichard MacCutchan25-Mar-11 1:05 
GeneralRe: hide the file or folder Pin
Charles Oppermann7-Apr-11 11:30
Charles Oppermann7-Apr-11 11:30 
I suspect that the original poster wishes prevent the file from showing up in list of files in a directory.

You can set the FILE_ATTRIBUTE_HIDDEN, which is the accepted method.

However, if someone uses Windows Explorer with the "Show Hidden files, folders, and drives" open turned on (non-default setting), then hidden files are shown.

The original poster is saying "Screw you end user, I don't care that you want to see hidden files, I want to keep my hidden files really hidden!"

In that case, use the combination of FILE_ATTRIBUTE_HIDDEN along with FILE_ATTRIBUTE_SYSTEM to hide the flie even more so.

Of course, one has to wonder why an application must go to such lengths to prevent determined end users from seeing what files are on their file system.
Charles Oppermann

GeneralRe: hide the file or folder Pin
Richard MacCutchan8-Apr-11 0:21
mveRichard MacCutchan8-Apr-11 0:21 
GeneralRe: hide the file or folder Pin
sarfaraznawaz10-Apr-11 23:41
sarfaraznawaz10-Apr-11 23:41 
GeneralRe: hide the file or folder Pin
Charles Oppermann11-Apr-11 11:00
Charles Oppermann11-Apr-11 11:00 
GeneralRe: hide the file or folder Pin
sarfaraznawaz11-Apr-11 18:19
sarfaraznawaz11-Apr-11 18:19 
GeneralRe: hide the file or folder Pin
Charles Oppermann12-Apr-11 2:53
Charles Oppermann12-Apr-11 2:53 
GeneralRe: hide the file or folder Pin
sarfaraznawaz12-Apr-11 21:05
sarfaraznawaz12-Apr-11 21:05 
QuestionDisplaying Chinese Characters Pin
pix_programmer20-Mar-11 19:06
pix_programmer20-Mar-11 19:06 
AnswerRe: Displaying Chinese Characters Pin
Richard MacCutchan20-Mar-11 23:09
mveRichard MacCutchan20-Mar-11 23:09 
QuestionRe: Displaying Chinese Characters [modified] Pin
pix_programmer20-Mar-11 23:28
pix_programmer20-Mar-11 23:28 
AnswerRe: Displaying Chinese Characters Pin
Richard MacCutchan21-Mar-11 2:24
mveRichard MacCutchan21-Mar-11 2:24 
AnswerRe: Displaying Chinese Characters Pin
yu-jian21-Mar-11 3:44
yu-jian21-Mar-11 3:44 
AnswerRe: Displaying Chinese Characters Pin
malaugh31-Mar-11 13:15
malaugh31-Mar-11 13:15 
QuestionHelp Get handles of process Pin
so0_lanhlung219-Mar-11 23:29
so0_lanhlung219-Mar-11 23:29 
AnswerRe: Help Get handles of process Pin
Hans Dietrich20-Mar-11 3:09
mentorHans Dietrich20-Mar-11 3:09 
GeneralRe: Help Get handles of process Pin
so0_lanhlung220-Mar-11 6:22
so0_lanhlung220-Mar-11 6:22 
GeneralRe: Help Get handles of process Pin
Hans Dietrich20-Mar-11 7:12
mentorHans Dietrich20-Mar-11 7:12 
GeneralRe: Help Get handles of process Pin
so0_lanhlung220-Mar-11 15:54
so0_lanhlung220-Mar-11 15:54 

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.