|
|
|
|
|
by 4cao
2218 days ago
|
|
Never realized INSTALLHIGH and LH were not documented. I recall using these, so I always assumed they were commonly known. And :: for comments is just a creative trick based on how labels in batch files are parsed. It wasn't originally supposed to be used this way, so no wonder the documentation never mentioned it. The difficulty in writing batch scripts was always that the best (or sometimes only) way of doing many things was to use a command originally intended for something completely different, in a completely non-intuitive way, and examples for such usage were never part of any official documentation. For example: To display an empty line (instead of "ECHO is on"): ECHO. To create a file: COPY CON FILE.TXT Even now, the way to load the output of a command into a variable is to use FOR: FOR /F %T IN ('TIME /T') DO SET TIME=%T And the best way to empty a directory of all its contents is to use ROBOCOPY /MIR. |
|
LH is documented in the MS-DOS 6.22 online help. "HELP LH" brings it up.
(The full name of the command is LOADHIGH, but LH is an acceptable abbreviation. The online help documents the LH abbreviation.)
(INSTALLHIGH by contrast wasn't documented... but LOADHIGH and DEVICEHIGH were. INSTALLHIGH is just putting a LOADHIGH in CONFIG.SYS instead of in AUTOEXEC.BAT)