Better use input parameters, it's more agile. For example, EMS.BAT:
Code:
@echo off
if %1=="true"**goto true
if %1=="TRUE"**goto true
if %1=="on"****goto true
if %1=="ON"****goto true
if %1=="false" goto false
if %1=="FALSE" goto false
if %1=="off"** goto false
if %1=="OFF"** goto false
config -get "dos ems"
echo.
echo.
goto end
:true
config -set "dos ems=true"
goto end
:false
config -set "dos ems=false"
:end
It sets the EMS emulation as you tell it, or alternatively tells you its status if you type no parameters. There are four ifs for each instance only to make it more user-friendly, you get the idea. This gave me the idea about one that tells you the cycles --in case you're fullscreen-- or alternatively sets them. The second part is easy, although it would be only as foolproof as the CONFIG command itself --in case the user types letters or nothing instead of numbers the cycles are set to 2500:
Code:
@config -set "cpu cycles=%1"
But as far as I know you can't tell a BAT file to do something in case the user has *not* typed a given parameter.
