Reputation: 24767
I'm writing a cygwin program that should open a web link. This code doesn't work:
system("cygstart \"http://www.mysite.com\"");
Cygstart works from the command line but not inside the system(). How should I do?
Upvotes: 0
Views: 672
Reputation: 4127
you may have to refer to the cygstart command by its full path. e.g.:
system("/usr/bin/cygstart.exe \"http://www.mysite.com\"");
edit: you may even have to use the full windows path instead of the cygwin path.
Upvotes: 1