This batch file gives the error in the title:

```
if "%PROCESSOR_ARCHITECTURE%"=="x86" (
    echo FOOBAR
) else (
    set HOME_EDIT=%SystemDrive%\Program Files (x86)\Notepad++
)

```

This is on a Win10 Pro x64 system (so the test is false).

Strangely the "set HOME\_EDIT..." line, if executed by itself, does NOT generate the error. And this batch file seemed to work OK a few weeks ago (oldest complaint in the book, I know, but maybe the recent Win10 Creator's Update chagned something?).

Here's the whole output:

```
U:\Users\Dave\data\PC setup\2017-03 PC Setup for Win10>test.bat
\Notepad++ was unexpected at this time.

U:\Users\Dave\data\PC setup\2017-03 PC Setup for Win10>    set HOME_EDIT=C:\Program Files (x86)\Notepad++

U:\Users\Dave\data\PC setup\2017-03 PC Setup for Win10>

```