vc6“Build”或者“Compile”菜单的时候,发现在输出窗口显示了以下信息:Error spawning 'vcspawn.exe'. The build could not be performed。然后熟悉的VC就不听你的使唤了!
添加(或者修改)环境变量ComSpec,设定其置为:c:\WINDOWS\system32\cmd.exe。
重启Vc.
2.
vcspawn.exe在你的路径
F:\lylong\Bin>where vcspawn.exe
E:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\vcspawn.exe
F:\lylong\Bin>path
PATH=E:\WINNT\system32;E:\WINNT;E:\WINNT\System32\Wbem;F:\lylong\Bin;E:\PROGRA~1\ULTRAE~1;E:\cyg
win\bin;E:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;E:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;E:\Program Files\Microsoft Visual Studio\Common\Tools;E:\Program
Files\Microsoft Visual Studio\VC98\bin;E:\Program Files\SecureCRT 3.0;C:\ThinkPad;C:\IBMTools;C
:\MSSQL7\BINN;
F:\lylong\Bin>set C
ComSpec=E:\WINNT\system32\cmd.exe