命令提示错误 'C:Program' 不是内部或外部命令,也不是可运行的程序或批处理文件 [英] Command Prompt Error 'C:Program' is not recognized as an internal or external command, operable program or batch file

查看:37
本文介绍了命令提示错误 '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 FilesIAR SystemsEmbedded Workbench 7.0430inicc430.exe F:CP001sourceMeterMain.c -D Hardware_P20E -D Calibration_code -D _Optical -D _Configuration_TS0382 -o F:CP001TempC20EOObj --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --debug -D__MSP430F425 -e --double=32 --dlib_config C:Program FilesIAR SystemsEmbedded Workbench 7.0430libdlibdl430fn.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 FilesIAR SystemsEmbedded Workbench 7.0430inicc430.exe" "F:CP001sourceMeterMain.c" -D Hardware_P20E -D Calibration_code -D _Optical -D _Configuration_TS0382 -o "F:CP001TempC20EOObj" --no_cse --no_unroll --no_inline --no_code_motion --no_tbaa --debug -D__MSP430F425 -e --double=32 --dlib_config "C:Program FilesIAR SystemsEmbedded Workbench 7.0430libdlibdl430fn.h" -Ol --multiplier=16 --segment __data16=DATA16 --segment __data20=DATA20

这篇关于命令提示错误 'C:Program' 不是内部或外部命令,也不是可运行的程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆