This is epic!
People who are saying "WHYYyyy" have no idea how difficult hardware and even OS detection is in DOS.
You don't just grep a few files in /proc and /sys, people!
Bonus points if it can distinguish MS/PC/DR/FreeDOS. :D
I'd love to see some CPU detection, but I don't have any hardware that I can contribute to the cause :/
I wish I could go back in time 15 years and tell myself to keep all my old stuff. I had a 1989 Mac SE and a 1997 dell latitude that I dearly miss.
@RL_Dane
DOS also have the VER command, but I'm not sure if it's possible to parse the output of it, I'm not even sure there were standard input and output, there was CON special device name, but AFAIR it's slightly different. I remember there was an %ERRORLEVEL% environment var similar to UNIX exit codes, but not much else😅
@leah
@m0xee @leah
I did use dos for a little while, but mainly to play games and launch Windows 3.1
I remember when it was cool to put WIN.COM in your AUTOEXEC.BAT XD
I'm impressed with anyone who got *anything* done with DOS BATCH. It was such a haplessly contorted language.