命令提示错误'C:\Program'不被识别为内部或外部命令,可操作的程序或批处理文件 [英] Command Prompt Error 'C:\Program' is not recognized as an internal or external command, operable program or batch file
本文介绍了命令提示错误'C:\Program'不被识别为内部或外部命令,可操作的程序或批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图运行以下批处理命令。该命令已从IDE中提取,因此已确认工作。得到下面提到的错误。
I am trying to run the following batch command. The command has been extracted from the IDE so is confirmed working. Getting the error mentioned below.
我尝试了一些变体与双引号,但他们没有工作。
即使在powershell上也有相同的消息。
I have tried a few variations with double quotes but they haven't worked. Even on powershell it has the same message.
C:\Program Files\IAR Systems\Embedded Workbench 7.0\430\bin\icc430.exe F:\CP001\source\Meter\Main.c -D Hardware_P20E -D Calibration_code -D _Optical -D _Configuration_TS0382 -o F:\CP001\Temp\C20EO\Obj\ --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --debug -D__MSP430F425 -e --double=32 --dlib_config C:\Program Files\IAR Systems\Embedded Workbench 7.0\430\lib\dlib\dl430fn.h -Ol --multiplier=16 --segment __data16=DATA16 --segment __data20=DATA20
更新:
尝试带有引号的解决方案会以某种方式使编译器混淆
Trying the solution with quotes confuses the compiler in some way
推荐答案
如果目录中有空格,请在其周围加引号。这包括您正在调用的程序,而不只是参数
If a directory has spaces in, put quotes around it. This includes the program you're calling, not just the arguments
"C:\Program Files\IAR Systems\Embedded Workbench 7.0\430\bin\icc430.exe" "F:\CP001\source\Meter\Main.c" -D Hardware_P20E -D Calibration_code -D _Optical -D _Configuration_TS0382 -o "F:\CP001\Temp\C20EO\Obj\" --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --debug -D__MSP430F425 -e --double=32 --dlib_config "C:\Program Files\IAR Systems\Embedded Workbench 7.0\430\lib\dlib\dl430fn.h" -Ol --multiplier=16 --segment __data16=DATA16 --segment __data20=DATA20
这篇关于命令提示错误'C:\Program'不被识别为内部或外部命令,可操作的程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文