Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在编写一个应该打开网络链接的 cygwin 程序。此代码不起作用:
system("cygstart \"http://www.mysite.com\"");
Cygstart 从命令行工作,但不在 system() 内部。我应该怎么做?
您可能必须通过完整路径引用 cygstart 命令。例如:
system("/usr/bin/cygstart.exe \"http://www.mysite.com\"");
编辑:您甚至可能必须使用完整的 Windows 路径而不是 cygwin 路径。