if "%2" == "C:\emulators\other_emus\mame102" goto mame102 if "%3" == "C:\emulators\other_emus\mame141" goto mame141 mame.exe %1 exit :mame102 c: cd \emulators\mame102 mame.exe %1 exit :mame141 c: cd \emulators\mame141 mame.exe %1 exit