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++ / December 2004

Tip: Looking for answers? Try searching our database.

how do i open hidden folder in my program ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
YANSHOF - 16 Dec 2004 07:53 GMT
hi

i trying to open some new folder in my program , i write this function below
, but i dont know how to make the folder "dataFile" to be hidden.

bool CPoliceDBApp::changeDirectory()
{
    char buffer[MAXSIZE];
   
    if(!_getcwd(buffer,MAXSIZE))     //get now active directory  
        return false;
               
    CString path=buffer;
   
    path+="\\dataFile";        //declare new directory path
   
    _mkdir(path);        //build new  folder in path
               
    if(_chdir(path))        //change active directory
        return false;   
    return true;
}
Carl Daniel [VC++ MVP] - 16 Dec 2004 15:37 GMT
> hi
>
> i trying to open some new folder in my program , i write this
> function below , but i dont know how to make the folder "dataFile" to
> be hidden.

See SetFileAttributes() Win32 API function.  You want to set
FILE_ATTRIBUTE_HIDDEN.

-cd

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.