system中有空格怎么办
原始路径:
C:\\Program Files\\putty\\putty.exe
改为:
char *cmd="C:\\\"Program Files\"\\putty\\putty.exe";
system(cmd);
实现putty自动代填:
system("C:\\\"Program Files\"\\putty\\putty.exe -ssh -l root -pw 123456 -P 422 111.111.111.111");
原始路径:
C:\\Program Files\\putty\\putty.exe
改为:
char *cmd="C:\\\"Program Files\"\\putty\\putty.exe";
system(cmd);
实现putty自动代填:
system("C:\\\"Program Files\"\\putty\\putty.exe -ssh -l root -pw 123456 -P 422 111.111.111.111");