![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-13 17:18 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Question for all experts and moderators |
| Printable Version 537 / 1 |
| Floor1 Crackerhow | Posted 2004-04-23 00:00 |
| 初级用户 Posts 7 Credits 127 | |
|
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~~~~!!! |
|
| Floor2 hendry2003 | Posted 2004-04-25 00:00 |
| 初级用户 Posts 20 Credits 192 From 上海市 | |
|
expand is probably a user-defined variable name, or possibly a system variable. You need to understand that together with the full batch file.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |