Slightly off post here, but can anyone see why this simple DOS script doesn’t work? It always evaluates to the variable “NO”. I should stick to VBA and JS, rather than this simple DOS stuff?!
TIA,
Ade
**************************
@ECHO OFF
SET /p userin=Are you connected to the network? Press Y for Yes, or N for No…
IF NOT “userin”==”Y” GOTO No
IF “userin”==”Y” GOTO Yes
:Yes
ECHO You answered Yes
GOTO End
:No
ECHO You answered No
:End
Pause
**************************