'C:\Users\' is not recognized as an intern

2019-06-14 08:59发布

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条回答
迷人小祖宗
2楼-- · 2019-06-14 09:55

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
查看更多
登录 后发表回答