China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 16:32
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » What does "lh" mean? View 14,082 Replies 7
Original Poster Posted 2007-04-05 22:32 ·  中国 四川 遂宁 电信
中级用户
★★
Credits 278
Posts 103
Joined 2006-10-21 21:08
19-year member
UID 67562
Gender Male
Status Offline
Often see such batch processing statements:
lh c:\dos\doskey.com   
But don't know what the meaning of lh in front is. Please have an expert explain it, okay?
Although the question is a bit naive, I can't pretend to know if I don't understand..>:            
Floor 2 Posted 2007-04-05 22:50 ·  中国 河北 廊坊 三河市 移动
金牌会员
★★★★
Credits 2,725
Posts 1,160
Joined 2006-09-23 12:00
19-year member
UID 63486
From 河北廊坊
Status Offline
I'm even worse than you because I've never even seen it.
三人行,必有吾师焉。 学然后知不足,教然后知困,然后能自强也。
Floor 3 Posted 2007-04-05 23:00 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
21-year member
UID 44210
Status Offline
lh is a command in DOS (CMD in XP is invalid) to add a program to the upper memory, thus saving the basic 640k memory space; however, this command is only effective after loading EMM386.exe and HIMEM.sys, and not all programs are effective
Floor 4 Posted 2007-04-06 00:08 ·  中国 四川 遂宁 电信
中级用户
★★
Credits 278
Posts 103
Joined 2006-10-21 21:08
19-year member
UID 67562
Gender Male
Status Offline
Maybe the explanation from the person above is right. I often see this but don't understand it, so the impression is relatively deep. For example, the following is a part of AUTOEXEC.BAT:

PATH A:\;%RAMD%\;%RAMD%\DOS;%CDROM%:\;%PATH%

XMSDSK.exe 20480 %RAMD%\ /y /t >NUL
SET COMSPEC=%RAMD%:\COMMAND.COM >NUL
COPY EXTRACT.EXE %RAMD%\ >NUL
COPY COMMAND.COM %RAMD%\ >NUL
EXTRACT.EXE /E /Y /L %RAMD%\TRS\TRS.CAB >NUL
LH SMARTDRV.EXE 20480 >NUL
LH CTMOUSE.EXE >NUL
LH MOUSCLIP.EXE >NUL
LH DOSKEY.COM >NUL
LH DOSLFN.COM >NUL
LH ZENO.EXE >NUL
LH KILLER.EXE >NUL
EXTRACT.EXE /E /Y /L %RAMD%\NTFS\NTFS.CAB >NUL
%RAMD%\NTFS\NTFSDOS.EXE >NUL
........

Thanks for the answer from the person above.

[ Last edited by zzhh612 on 2007-4-6 at 12:14 AM ]
Floor 5 Posted 2007-04-07 03:04 ·  中国 安徽 合肥 电信
初级用户
Credits 29
Posts 15
Joined 2007-02-17 00:05
19-year member
UID 79653
Gender Male
Status Offline
It is when the system boots up that it loads various drivers and programs.
Floor 6 Posted 2007-04-07 05:55 ·  中国 广西 玉林 博白县 电信
金牌会员
★★★★
Credits 3,687
Posts 1,467
Joined 2005-08-08 12:00
21-year member
UID 44210
Status Offline
Originally posted by ding520 at 2007-4-6 14:04:
It is when the system boots to load various drivers and programs.

When loading various drivers and programs, lh is not necessary.

The explanation found online is the same as what I said on the 3rd floor.
lh/loadhigh    Load the program into the upper memory

  This command is generally used in autoexec.bat. It will be useful when some software requires a large amount of basic memory.

  lh

        Load the program into the upper memory. When using this command, the following two statements need to be in the config.sys file. device=emm386.exe dos=umb
Floor 7 Posted 2008-12-17 23:59 ·  中国 广东 深圳 电信
新手上路
Credits 27
Posts 16
Joined 2007-12-17 17:49
18-year member
UID 105949
Gender Male
Status Offline
lh/loadhigh Load the resident program into the upper memory! Generally used in autoexec.bat. When some software requires a large amount of conventional memory, we call it! But before using it, the config.sys configuration file must manage the upper memory umb and the upper memory area hma. The emm386.exe program for managing the upper memory needs to be loaded.

        lh [program] /l:area number   Load the program into the specified umb area
        lh /s          Generally dedicated by memmaker
Floor 8 Posted 2009-03-08 07:44 ·  中国 江西 赣州 电信
初级用户
统统一计划
Credits 45
Posts 24
Joined 2009-03-07 06:20
17-year member
UID 140855
Gender Male
From 中华人民共和国
Status Offline
It's really difficult. I can't understand. My English is very poor. I don't even know if I can learn DOS well.
Forum Jump: