cannot start tool
系统找不到指定文件
cannot start tool
Error spawning 'vcspawn.exe' The build could not be performed
1.环境变量。
方案 : 更正 IDE 环境
如果有下列错误文本变种, 可能有 ComSpec 定义或 IDE 环境, 指定哪里可以找到工具中错误:
无法启动工具。 成功完成操作。 无法启动工具。 ' vcspawn.exe ' 生成错误。 无法执行生成。
有关更正 ComSpec 定义信息请参见下面解析 4。 要纠正 IDE 环境: 1. 从 工具 菜单, 单击 选项 。
2. 单击 目录 选项卡, 并在 用于显示目录 , 选择 可执行文件 。
3. 应按此顺序列出以下五目录: 纠正目录列表指向有效目录:
a. (您 VC 安装位置) \Common\MSDev98\Bin;
b. (您 VC 安装位置) \VC98\BIN;
c. (您 VC 安装位置) \Common\TOOLS;
d. Windows 系统目录 (这通常是 C:\WINDOWS\system32
e. Windows 目录 (通常是 C:\WINDOWS)
4. 通过双击其, 测试这些目录, 然后单击省略号 [ ]。 此外, 将目录复制到剪贴板。 然后, 在 开始 菜单上, 单击 运行 , 并在 打开 文本框中粘贴目录。 此方法应将备份 WindowsExplorer 与该目录。
5. 要添加新目录, 双击空框, 然后单击省略号 [ ]。
注意 ": … 目录包含 Vcspawn.exe 并且应该列表中第一个: " \MSDev98\Bin。
方案 : 使用系统环境
另一种指定可执行路径为启动 MSDEV (Visual C++) 时使用 /USEENV 参数。 命令行类似以下内容: Msdev /USEENV
此操作强制 VisualC 用于系统环境设置而不在 工具 菜单 选项 中指定目录。 这有助于是否正确 ; 所有系统环境变量例如, 如果从命令提示符成功建立。
注意 : 解析 2 通常建议通过使用 /USEENV 开关。 请有关, Service Pack 3 中已修复错误请单击下面的文章编号, 以查看 Microsoft 知识库中相应
216854 (http://support.microsoft.com/kb/216854/EN-US/) 一旦运行 msdev / useenv 使环境用于永久 FIX:
方案 :
如果路径查找正确 (参见解析 2), 问题可能与 ComSpec 环境变量。 ComSpec 环境变量标识执行命令提示符。 WindowsNT, 上这通常如下所示: ComSpec=C:\WINDOWS\system32\cmd.exe
在 Windows 95 或 Windows 98, 它通常如下所示: ComSpec=C:\Windows\COMMAND.COM
要检查, 设置, 或者更改 ComSpec 环境变量的值: • 在 WindowsNT:1. 从 开始 菜单, 指向 设置 , 然后单击 控制面板 。
2. 双击 系统 图标 (此操作显示所有现有环境变量和值)。
3. 添加或修改 ComSpec 变量, 必要。
• 在 Windows9x x:1. 从 MS-DOS 提示符, 输入 set ComSpec . 此操作或者显示 ComSpec 环境变量或未定义 " 环境变量 ComSpec " 的当前值。
2. 编辑 Autoexec.bat 文件以修改或添加到系统必要 ComSpec。
2.NULL设备
Resolution 1: Install or Re-Enable NULL Device (Windows NT Only)
There are slight variations on the displayed error text. These variations can sometimes help to identify what is causing the problem. If the error text resembles the following, you may have problems opening the NULL device:
Cannot start tool. The system cannot find the file specified. The system cannot find the file specified. Error spawning 'vcspawn.exe '. The build could not be performed.
Use the following steps to check on the NULL device:
From Control Panel, open the Devices manager.
Look for the Null device in the list of devices. If you do not have a Null device, you must reinstall Null.sys.
The Null device should show Status=Started and Startup=System.
To correct the Status setting, select the Null device and click Start.
To correct the Startup setting, select the Null device, click Startup, and then select System.
1.拷贝null.sys 至系统目录 C:\WINDOWS\system32\drivers\。
2.创建NULL服务,可借助SC命令,或下载windows服务安装/卸载工具(windows服务安装/卸载工具)。
sc create Null binPath= "system32\drivers\null.sys" type= kernel start= system error= normal group= Base tag= no DisplayName= Null
加载中,请稍候......