Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / April 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Vic.Dong - 28 Apr 2006 16:23 GMT
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
Sean M. DonCarlos - 28 Apr 2006 20:51 GMT
> 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
Tim Roberts - 29 Apr 2006 07:46 GMT
>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.
Signature

- Tim Roberts, timr@probo.com
 Providenza & Boekelheide, Inc.


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.