Computing.Net > Forums > Programming > C++ - Check for file AND folder

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

C++ - Check for file AND folder

Reply to Message Icon

Name: chazco
Date: January 10, 2005 at 08:07:09 Pacific
OS: Windows 98+
CPU/Ram: 128MB+
Comment:

All my C++ applications call a file called:
C:\Program Files\CHAZCO\registry.ini to load their settings via an INI class. However, my new application, standalone, no installer, needs to be able to check if the folder C:\Progra~1\CHAZCO exists, and if the file exists, and create them if not.

I'm using Visual C++ 6, and the application is an MFC Win32 application.

Any help appreciated...



Sponsored Link
Ads by Google

Response Number 1
Name: BlueRaja
Date: January 10, 2005 at 16:12:34 Pacific
Reply:

Uhh..is there anything specific you need help with?

BlueRaja.admin@gmail.com


0

Response Number 2
Name: chazco
Date: January 10, 2005 at 23:42:18 Pacific
Reply:

Yes, it was poorly written.
I need to know how to:
- Check if the folder C:\Progra~1\CHAZCO exists, create it if not
- And how to check if the file REGISTRY.ini exists inside that folder, and create if not (plain text)...

Thanks


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: C++ - Check for file AND folder

Enumerate all files and folders www.computing.net/answers/programming/enumerate-all-files-and-folders/9618.html

Check for file existance on server www.computing.net/answers/programming/check-for-file-existance-on-server/16291.html

hiding picture files and folders www.computing.net/answers/programming/hiding-picture-files-and-folders/3886.html