Jump to content
xisto Community
Sign in to follow this  
sangdukseo

Accessing Dos im a newb

Recommended Posts

Hey, i'm a newbie at c++. Is there anyway to access the windows system files through a c++ program? Kind of like running a command through dos. I could really use help here. Second question. How do you create a system tray icon in windows? can this be done in c++? i feel very dumb. please help me out.

Share this post


Link to post
Share on other sites

lol don't feel dumb, i've been doing c++ for a year and i don't have a clue how to make a system tray icon. my best guess at that you could find a tutorial at http://www.codeproject.com/.

[5 minutes later...] yep, the article is here.

never tried it myself, but as a general rule 'the codeproject' is awesome.

as for running a command through dos, the win32 command 'system()' will run a command as if you are typing it into an MS-DOS prompt. for instance:

system("edit myFile.txt");
will quickly pop open a console window, run the command "edit myFile.txt" and then show the resultant MS-DOS text editor.

hope that was what you were after.
keep coding!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.