Provide the full path to the executable? But really, if your program merely opens a canned program, why not go with just a link to that program to begin with?
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
This would be my first guess:
system("start path/to/steam.exe");
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Try
system("start \"C:/Program Files/Steam/steam.exe\"");
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Yup. Let's 86 the 'start'.
system("\"C:/Program Files/Steam/steam.exe\"");
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314
Maybe something like this .
Dave Sinkula
long time no c
5,058 posts since Apr 2004
Reputation Points: 2,780
Solved Threads: 314