asked on
& "C:\Program Files\MyProgram\MyCMDprogram.exe" -Enable 7584345
But I want to test for the computer name. If I add an if statement like this...& if %computername%==xyz123 "C:\Program Files\MyProgram\MyCMDprogram.exe" -Enable 75843456
It fails saying that "The term 'if' is not recognized..."if %computername%==xyz123 "C:\Program Files\MyProgram\MyCMDprogram.exe" -Enable 75843456