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~~~~!!!
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~~~~!!!


