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-13 18:26
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Question for all experts and moderators View 538 Replies 1
Original Poster Posted 2004-04-23 00:00 ·  中国 湖北 武汉 电信
初级用户
Credits 127
Posts 7
Joined 2004-04-12 00:00
22-year member
UID 22376
Gender Male
Status Offline
Experts and gurus:
I’ve been learning DOS for quite a while, but there is one problem that has been bothering me for a long time,
and I’ve been unable to find an answer: the problem is this: at the beginning of the autoexec.bat
file on the Windows 98 (Windows ME) boot disk, there are these lines:
set EXPAND=YES
SET DIRCMD=/O:N
set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15
set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 C
It’s not hard to understand set dircmd=/o:n — it uses set to define an environment variable for the dir command, so it displays in alphabetical order.
But I don’t know what set expand=yes is. Although expand is a DOS command, it doesn’t seem to be used like this.
I once installed Winginer’s msdos7.1, and there was similar usage in auotexec.bat too. I don’t know what kind of usage this is in a .bat
file, or what its function is (I once deleted set expand=yes and it didn’t seem to have any effect either).
The set lgldrv afterward should be setting a variable for searching drives, but how exactly does it work,
and could you explain its general usage? I hope all you experts and veterans won’t hesitate to enlighten me. I thank you all in advance here~~~~!!!



Floor 2 Posted 2004-04-25 00:00 ·  中国 上海 静安区 电信
初级用户
Credits 192
Posts 20
Joined 2004-03-22 00:00
22-year member
UID 20790
Gender Male
From 上海市
Status Offline
expand is probably a user-defined variable name, or possibly a system variable. You need to understand that together with the full batch file.
**************%%%%%%%%%************

我是大菜鸟,渴望成为一个能独立飞翔的老鸟
请各位大 虾不吝赐教,小弟在此谢谢了。

**************%%%%%%%****************
Forum Jump: