''Command'不被识别为内部或外部命令,可操作程序或批处理文件

时间:2021-02-10 23:13:39

I am compiling spice 3f5 on Windows 10.

我在Windows 10上编译spice 3f5。

C:\Users\myname\Documents\spice\spice3f5> msc51

C:\Users\myname\Documents\spice\spice3f5>set CL=/Gt64 /Os /FPi87 /AL /G2 /W2

C:\Users\myname\Documents\spice\spice3f5>cd src

C:\Users\myname\Documents\spice\spice3f5\src>command /c msc51.bat
'command' is not recognized as an internal or external command,
operable program or batch file.

What do I need to do to get the cmd to recognize command?

要让cmd识别命令,我需要做什么?

Or does this have to do with the code not compiling correctly?

或者这与代码编译不正确有关吗?

I have seen other questions and they talk about paths and something about setting and environment. Now I'm no pro I just want to compile spice 3f5.

我已经看到了其他问题,他们谈论了关于设置和环境的路径和问题。现在我不是专业人士我只想编译spice 3f5。

1 个解决方案

#1


1  

The ComSpec variable typically contains the current shell on Windows. In order to make the code most reusable, replace command with %ComSpec%.

ComSpec变量通常包含Windows上的当前shell。为了使代码最具可重用性,请将命令替换为%ComSpec%。

#1


1  

The ComSpec variable typically contains the current shell on Windows. In order to make the code most reusable, replace command with %ComSpec%.

ComSpec变量通常包含Windows上的当前shell。为了使代码最具可重用性,请将命令替换为%ComSpec%。