64,267
社区成员
发帖
与我相关
我的任务
分享
string cmdstr1 = "\"D:\\ff ff\\pscli.exe\"";
string cmdstr2 = "ping 192.168.20.1";
string cmdstr3 = "\"D:\\ff ff\\pscli.exe\" \"d:\\output\"";
string cmdstr4 = "\"ping\" \"192.168.20.1\" ";
cout << "1:" << endl;
system(cmdstr1.c_str());
cout << "2:" << endl;
system(cmdstr2.c_str());
cout << "3:" << endl;
system(cmdstr3.c_str());
cout << "4:" << endl;
system(cmdstr4.c_str());
system("PAUSE ");
return 0;
string cmdstr4 = "\"\"ping\" \"192.168.20.1\"\"";