Open C programm

0 Silard Kovac · May 28, 2015
I'm making a c launcher. I want to open skype.exe ... This code is not working:
system(path);
path(the direction for skype.exe)
Any suggestions????

Post a Reply

Replies

Oldest  Newest  Rating
0 c student · May 29, 2015
There are many ways to do this.  It really depends on how you want to handle and execute this and on which OS you are developing for if you intend to use system calls.  If you're for POSIX, you can check out the exec() functions found here:
http://linux.die.net/man/3/exec

If you're designing for a Windows environment, you might be interested in the Win32 API CreateProcess function here:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx
0 Silard Kovac · May 29, 2015
Thanks Man!
  • 1

C

106,966 followers
About

One of the most popular languages of all time.

Links
Moderators
Bucky Roberts Administrator