cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Run a *.exe in win32 application?
Run a *.exe in win32 application?
Jan 27, 2010 at 8:56am UTC
kevin06s
(38)
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.
Jan 27, 2010 at 11:07am UTC
Denis
(350)
You can use relative path.
for example
system("./../a.exe"); //it means that this file situated on one level up on file system layout.
Jan 27, 2010 at 6:24pm UTC
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.