Reply 20 of 49, by curvedline
i tested 3 programs and 1 dos command below
DDIR.EXE
EGALASER.COM
TOGGLE.COM
dir
the results were below
ERRLVL.COM DDIR.EXE - works
ERRLVL.COM EGALASER.COM - works
ERRLVL.COM TOGGLE.COM - works
ERRLVL.COM dir - doesnt work
ERRLVL.COM DDIR - dosbox hangs and crashes
ERRLVL.COM EGALASER - dosbox hangs and crashes
ERRLVL.COM TOGGLE - dosbox hangs and crashes
ERRLVL.COM DDIR.BAT - dosbox hangs and crashes (DDIR.BAT simply has DDIR.EXE in it)
ERRLVL.COM EGALASER.BAT - dosbox hangs and crashes
ERRLVL.COM TOGGLE .BAT - dosbox hangs and crashes
@echo off
ERRLVL.COM EGALASER.COM
if errorlevel 768 echo 768 executed successfully
pause
cls
ERRLVL.COM toggle.COM
if errorlevel 0 echo toggle executed successfully
ERRLVL.COM toggle.COM ddd
if errorlevel 1 echo toggle.com doesnt have the ddd option
pause
cls
ERRLVL.COM ddir.exe *.com
if errorlevel 0 echo ddir.exe executed successfully
ERRLVL.COM ddir.exe *.xxx
if errorlevel 0 echo ddir executed successfully but no files with xxx exten
pause
cls
ERRLVL.COM dir *.com
if errorlevel 2 echo dir command executed successfully
ERRLVL.COM dir *.xxx
if errorlevel 2 echo dir command executed successfully but no files with xxx exten
ERRLVL.COM fsjfsd
if errorlevel 2 echo this means errlvl.com doesnt work with the DOS commands
i need a scenario as to what story i can use errlvl.com for properly,
so far it gives info as to if the programs ran or not, or as to if i typed the options of a program like toggle.com correctly. toggle.com's correct option is "n" or "c" and not "ddd"
i consider a collection of batch commands are a story telling , a couple of individual commands mean nothing much, but the complete collection to end the story means totally something
i am a physicist, so i dont understand many of batch operators, especially double combo operators and ,much less triple combo ones.