Sign in to follow this  
ViperG

system("notepad") makes my game stop

Recommended Posts

CTar    1134
I guess system("notepad&"); would work, but I'm almost certain there is a better way. I'm not too experienced with Windows or Win32, but I guess it would be preferable to get the path from the registry and use a Win32 command to execute it.

Share this post


Link to post
Share on other sites
knowyourrole    254
The reason your initial attempt didn't work was that you were executing it from the comamnd line in the wrong way. It should have been:

system("start notepad.exe c:/whatever.txt)";

This doesn't cause the program calling it to wait for the notepad window to close before execution continues.

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