Reply 20 of 79, 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 offERRLVL.COM EGALASER.COMif errorlevel 768 echo 768 executed successfullypauseclsERRLVL.COM toggle.COMif errorlevel 0 echo toggle executed successfullyERRLVL.COM toggle.COM dddif errorlevel 1 echo toggle.com doesnt have the ddd optionpauseclsERRLVL.COM ddir.exe *.comif errorlevel 0 echo ddir.exe executed successfullyERRLVL.COM ddir.exe *.xxxif errorlevel 0 echo ddir executed successfully but no files with xxx extenpauseclsERRLVL.COM dir *.comif errorlevel 2 echo dir command executed successfullyERRLVL.COM dir *.xxxif errorlevel 2 echo dir command executed successfully but no files with xxx extenERRLVL.COM fsjfsdif 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.