Teaching an old dog new tricks
Who looks back on the DOS days with nostalgia, remembering all of the tricks you had to do to get stuff to work?
What were some of your favorite tricks? Here are some of mine:
Remember when you had to set environment variables in the AUTOEXEC.BAT file so that programs could find their config files?
I'm immediately reminded of Procomm (the shareware program that EVERYONE evaluated for years while deciding whether to purchase it!). I created a PROCOMM.BAT file in my BAT directory (of course, C:\BAT was the first item in my path!). The first line would set PROCOMM to the correct value, the second line would be the entire path and filename (since C:\PROCOMM wasn't in my PATH), and the third line would set PROCOMM to nul. (Don't forget to put the backslash at the end of the line when you set the PROCOMM env var.) (Setting it to nul would keep the environment clean.)
Trick to free up environment space: Set some dummy variables to XXXXXXXXXXXXXXXXXXXXXXXX (total line length would be 127). Then, if you needed more env space, set one or more to nul. It would free up 127 bytes.
Remember EDLIN? It was UNIVERSALLY available, so I decided one day to learn it, so that I would always have a batch file editor available.
Remember using COPY CON to edit files?
Those were the days...