Run a *.exe in win32 application?

I want to create a program chooser in a win32 application, how do I run a file in win32? I tried to use the file's full path, but that does not seem too portable.
You can use relative path.
for example

system("./../a.exe"); //it means that this file situated on one level up on file system layout.
closed account (S6k9GNh0)
I suggest you not use system();. Use the create process function instead:

http://msdn.microsoft.com/en-us/library/ms682425.aspx
Topic archived. No new replies allowed.