手动在VS 2008 Express Edition中添加命令提示符

发布于 2024-08-18 08:54:27 字数 664 浏览 2 评论 0原文

为了在 VS 2008 Express Edition 中添加命令提示符,我完成了以下步骤: 工具->外部工具->单击“添加”。然后我输入了以下信息:

Title: Visual Studio 2008 Command Prompt
Command: cmd.exe
Arguments: %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
Initial Directory: $(ProjectDir)

然后确定/应用

此后,当我转到“工具”菜单并单击“Visual Studio 2008 命令提示符”时,命令提示符打开,但出现以下错误消息:

'"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"' is not recognized as an internal or external command, operable program or batch file.

请有人帮助我解决此问题。或者有人新教我如何在 VS 2008 Express Edition 中手动将命令提示符添加到工具菜单。

To add the Command prompt in VS 2008 Express Edition, I have done the following steps:
Tools->External Tools->Click on Add. Then I have entered the following information:

Title: Visual Studio 2008 Command Prompt
Command: cmd.exe
Arguments: %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86
Initial Directory: $(ProjectDir)

Then OK/Apply.

After this when I went to the Tools Menu and clicked on Visual Studio 2008 Command Prompt, command prompt opened but I got the following error message:

'"C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"' is not recognized as an internal or external command, operable program or batch file.

Please somebody help me to fix this problem. Or somebody teach me freshly how to add command prompt to the Tools Menu manually in VS 2008 Express Edition.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

诗化ㄋ丶相逢 2024-08-25 08:54:27

为什么要指定 %comspec% 环境变量作为 cmd.exe 参数的一部分? %comspec% 不是指向 cmd.exe 吗?

我也不确定为什么您还要在参数末尾添加 x86

看来参数是 /k "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"

最后,我目前不在 Windows 机器上,但是您是否仔细检查过 .bat 文件的路径?至少对于非免费版本的 Visual Studio,我似乎记得 .bat 文件类似于 vsvars.batvcvars32.bat。不过,Express Edition 的名称可能有所不同。

Why are you specifying the %comspec% environment variable as part of the arguments to cmd.exe? Doesn't %comspec% point to cmd.exe?

I'm also not sure why you added x86 to the end of the arguments, as well.

It seems like it would be enough for the arguments to be /k "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"

Finally, I'm not at a Windows machine currently, but have you double checked the path to the .bat file? At least for the non-free versions of Visual Studio, I seem to recall the .bat file being something like vsvars.bat or vcvars32.bat. The name could be different for the Express Edition, though.

最终幸福 2024-08-25 08:54:27

在 VS 2010 Ultimate 中手动添加命令提示符 - http://bit.ly/1L2tseJ

Add Command prompt in VS 2010 ultimate manually- http://bit.ly/1L2tseJ

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文