WInform CMD command

调用系统cmd

文件夹共享:string share_cmd = "net share Deployment=C:\\Deployment /GRANT:Everyone,CHANGE";

Deployment:共享名

C:\\Deployment:共享文件夹路径

/GRANT:Everyone,CHANGE  everyone可读可写

 

 

调用vs cmd

string[] cmd = new string[2];
cmd[0] = "cd /d \"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\\"";
cmd[1] = "%comspec% /k \"\"C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\vcvarsall.bat\"\" x86";

 

你可能感兴趣的:(WinForm)