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

2019-06-14 09:10发布

问题:

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