在Visual Studio中,选择工具->选项->工程和解决方案->VC++目录 点击上方的像文件夹的按钮-新建行,而后在空白处添加cmd.exe所在的目录C:\Windows\System32\ (若是你是默认装在C盘的话)点击肯定,就OK了。 In VS, go to tools>options>projects and solutions>VC++ Directories click the little folder button (new line) then in the new line that appears put: C:\Windows\System32\