Is there anybody how to create hidden folder in public folder or system?

  • Thread starter Thread starter Vic.Dong
  • Start date Start date
V

Vic.Dong

Hello:


Is there anybody how to create hidden folder in public folder or system?

I have a any problem.
I cannot create hidden folder in public or system folder.
Is there anybody who knows the answer to create hidden folder ?


B.R.

Vic
 
Vic.Dong said:
Is there anybody how to create hidden folder in public folder or system?

Sure!

#using <System.dll>
#using <System.IO.dll>

DirectoryInfo^ di = gcnew DirectoryInfo("C:\\ExistingDir\\HiddenDir");

// Exception handling omitted
di->Create();
di->Attributes = FileAttributes::Directory | FileAttributes::Hidden;

Sean
 
Vic.Dong said:
Is there anybody how to create hidden folder in public folder or system?

I have a any problem.
I cannot create hidden folder in public or system folder.
Is there anybody who knows the answer to create hidden folder ?

CreateDirectory( "c:\\Program Files\\FolderX", NULL );
SetFileAttributes( "c:\\Program Files\\FolderX", FILE_ATTRIBUTE_HIDDEN );

Of course, it will still be visible with "dir /a". You don't want to make
a truly hidden folder. Sony learned that lesson the hard way.
 
Back
Top