'C:\Users\' is not recognized as an internal or external command,operable program or batch file

南楼画角 提交于 2019-12-08 12:23:00

问题


i have this error in building in atmel studio 6 : C:\Program Files\Atmel\Atmel Studio 6.1\shellUtils\make.exe all 'C:\Users\' is not recognized as an internal or external command, operable program or batch file.


回答1:


The entire string you show needs to be in quotes. Unfortunately you did not show any code... so we are left to guess. 1. It may appear as a string where it is used. 2. More likely you have something like this:

set SomeVariable=C:\Program Files\Atmel\Atmel Studio 6.1\shellUtils\make.exe

Typically you would leave that as it is (or better yet; use the quotes as I have shown below so you are certain there only trailing spaces if you intend to have them) and do the quoting when the variable is used because you may not always want those quotes. For example, the first line below defines the string; the second line would display it; and the third line would execute it. The 4th line would be used to pass the string to a subroutine.

set "SomeVariable=C:\Program Files\Atmel\Atmel Studio 6.1\shellUtils\make.exe"
echo(%SomeVariable%
"%SomeVariable%"
call Subroutine "%SomeVariable%"

Ahhhh... Based on the Print screen supplied later I think you need to use quotes like this:

"C:\Program Files\Atmel\Atmel Studio 6.1\shellUtils\make.exe" all


来源:https://stackoverflow.com/questions/20164728/c-users-is-not-recognized-as-an-internal-or-external-command-operable-progra

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!