always jumps to :AUTOSTARTCD which gives me Abort-Retry-Fail if drive not inserted
if ERRORLEVEL value ....
performs ... if ERRORLEVEL is >= value
so your IF are out of order - the first one will go if ERROELVEL==1
but even that won't work - ERRORLEVEL will always be >= 0
so the GOTO will always get taken.
I think you want something like: (not tested)
DREADY R:
if ERRORLEVEL 2 goto end
echo AutoStart
if exists R:\START.BAT call R:\START.BAT
:end
If Wikipedia is to be believed (https://en.wikipedia.org/wiki/Abort,_Retry,_F … #Modern_systems)
you should be able to put shell=command.com /p /f in config.sys, and the undocumented /f installs a critical error handler to avoid the Abort/Retry/Fail prompt
always jumps to :AUTOSTARTCD which gives me Abort-Retry-Fail if drive not inserted
if ERRORLEVEL value ....
performs ... if ERRORLEVEL is >= value
so your IF are out of order - the first one will go if ERROELVEL==1
but even that won't work - ERRORLEVEL will always be >= 0
so the GOTO will always get taken.
I think you want something like: (not tested)
DREADY R:
if ERRORLEVEL 2 goto end
echo AutoStart
if exists R:\START.BAT call R:\START.BAT
:end
FDAPM - power management tool from FreeDOS (this is only method I found to do full reboot. Other tools only restarts DOS and skips BIOS)
Also usefull with