Easy Question

Started by
3 comments, last by Greg K 22 years ago
How do I open up a file from my program. Basically I want to run a program (IExplorer) from my program. Thanks. -Greg Koreman
Advertisement
If you want to open a web page in your default browser, do this:

  ShellExecute(NULL,"open","http://www.somewhere.com",NULL,NULL,SW_SHOWNORMAL);  

You can use exactly the same function to run an executable. Hope this helps

---------------

#define TRUE 0
#define FALSE 1
//MUAHAHAHAHAAAA!
^
Seriously f*cked formatting. Not my fault.

---------------

#define TRUE 0
#define FALSE 1
//MUAHAHAHAHAAAA!
or use the system command:

System("C:\\Program Files\\Explorer\\IExplorer.exe");






_____________________________________________________

ICQ #: 149510932

Google - OpenGL - DirectX - Windows Guide Network - MSDN - Symantec Virus Info

"Imagination is more important than knowledge." - Albert Einstein

Thanks guys.

This topic is closed to new replies.

Advertisement