@echo off if "%computername%" geq "a163" ( start c.bat ) else ( if "%computername%" geq "a102" ( start b.bat ) else ( start a.bat ) )