I need to run a code block ONLY IF THE Computer name is identied as a AB or AC
FOR /F "tokens=* USEBACKQ" %%F IN (`echo %ComputerName%`) DO (
SET COMPUTERNAME=%%F
)
ECHO %COMPUTERNAME%
I take the computername to %COMPUTERNAME% variable
if %COMPUTERNAME% == %AB% (
Continue rest of the code ) ELSE (
if %COMPUTERNAME% == %AC% echo Stop it here
)
Please help me with this.
Best Regards,SQLBoy