![]() |
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-18 09:47 |
47,814 topics / 349,907 posts / today 0 new / 48,259 members |
| DOS批处理 & 脚本技术(批处理室) » (Resolved) Who can explain this autoexec.bat in the boot disk? |
| Printable Version 2,190 / 4 |
| Floor1 zhengkai | Posted 2002-11-04 00:00 |
| 初级用户 Posts 1 Credits 105 | |
|
This is a batch file from a boot disk:
Who can help me translate what these commands mean??!!! I'm really dumb~~~~~ If you want the original file, send me an E-MAIL!yuzhengkai@163.com type autoexec.bat 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 call setramd.bat %LglDrv% path=C:\;%RAMD%:\;%RAMD%:\BAT;%CDROM%:\;%CDROM%:\UCDOS;%CDROM%:\BOOT; copy get.exe %RAMD%:\ > NUL copy attrib.exe %RAMD%:\ > NUL copy command.com %RAMD%:\ > NUL copy edit.com %RAMD%:\ > NUL copy format.com %RAMD%:\ > NUL copy fdisk.exe %RAMD%:\ > NUL copy deltree.exe %RAMD%:\ > NUL copy restart.com %RAMD%:\ > NUL copy readme.exe %RAMD%:\ > NUL copy ramexec.bat %RAMD%:\ > NUL copy xxcopy.exe %RAMD%:\ > NUL rem copy extract.exe %RAMD%:\ > NUL set comspec=%RAMD%:\command.com LH MSCDEX.EXE /D:MSCD000 /L:%CDROM% LH SMARTDRV.EXE 4096 LH DOSKEY.COM > NUL LH MOUSE.COM > NUL Set LglDrv= MD %RAMD%:\TEMP rem extract /y /e /l %RAMD%: ebd.cab > NUL XXCOPY /E /H %CDROM%:\BOOT\EBD %RAMD%:\ > NUL %RAMD%: ramexec.bat qq:19540580 Chat when you have time ---------- Edited by willsort ---------- Original title modified: Who can tell me》????Help!!!!! Experts and veterans, come help! ---------- Edited by willsort ---------- [ Last edited by willsort on 2005-9-23 at 20:21 ] |
|
| Floor2 MYS | Posted 2002-11-04 00:00 |
| 元老会员 Posts 1,637 Credits 5,170 From 广东佛山 | |
|
SET EXPAND=YES ;set the environment variable EXPAND to YES
SET DIRCMD=/O:N ;set the DIRCMD variable to /O:N (controls the DIR command) ;The following two lines set the drive letters of the logical drives (c-z) as the environment variable LglDrv 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 call setramd.bat %LglDrv% ;call SETRAMD.BAT and use the logical drive letter environment variable as the parameter ;Below sets the search path; %RAMD% and %CDROM% are the virtual disk and CD-ROM drive letters returned by SETRAMD path=C:\;%RAMD%:\;%RAMD%:\BAT;%CDROM%:\;%CDROM%:\UCDOS;%CDROM%:\BOOT; copy get.exe %RAMD%:\ > NUL ;copy the file get.exe to the virtual disk, redirect output information to NUL (so they are not displayed on the screen); the usage below is the same copy attrib.exe %RAMD%:\ > NUL copy command.com %RAMD%:\ > NUL copy edit.com %RAMD%:\ > NUL copy format.com %RAMD%:\ > NUL copy fdisk.exe %RAMD%:\ > NUL copy deltree.exe %RAMD%:\ > NUL copy restart.com %RAMD%:\ > NUL copy readme.exe %RAMD%:\ > NUL copy ramexec.bat %RAMD%:\ > NUL copy xxcopy.exe %RAMD%:\ > NUL rem copy extract.exe %RAMD%:\ > NUL ;Lines beginning with REM are comments; this line will not execute ;Below sets the COMSPEC variable, specifying that the DOS command interpreter command.com is located on the virtual disk set comspec=%RAMD%:\command.com ;Below calls DOS's CD-ROM extension program, letting the CD be read by DOS as a DOS disk LH MSCDEX.EXE /D:MSCD000 /L:%CDROM% LH SMARTDRV.EXE 4096 ;start the disk cache tool, set a 4K cache (so small?) LH DOSKEY.COM > NUL ;start DOSKEY, don't send the information to the screen LH MOUSE.COM > NUL ;start the mouse driver. Set LglDrv= ;delete the environment variable LglDrv MD %RAMD%:\TEMP ;create the TEMP folder on the virtual disk rem extract /y /e /l %RAMD%: ebd.cab > NUL ;REM comments out this line so it will not execute XXCOPY /E /H %CDROM%:\BOOT\EBD %RAMD%:\ > NUL ;The line above copies everything in the CDROM's \BOOT\EBD subdirectory to the virtual disk, without displaying information %RAMD%: ;switch to the virtual disk ramexec.bat ;execute the ramexec.bat file on the virtual disk Satisfied? This should be a DOS boot CD made by some expert; the CD also has UCDOS installed |
|
| Floor3 Wengier | Posted 2002-11-04 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
Yes, it is a boot disk made with slight modifications to the MS-DOS 7.x boot disk included with Win9x, but the quality is still only average.
|
|
| Floor4 dosguest | Posted 2002-11-04 00:00 |
| 中级用户 Posts 75 Credits 381 | |
|
LH SMARTDRV.EXE 4096 ;start the disk cache tool, set a 4K cache
There is a typo in the sentence above; it should be changed to: LH SMARTDRV.EXE 4096 ;start the disk cache tool, set a 4M cache [ Last edited by willsort on 2005-9-23 at 20:18 ] |
|
| Floor5 fastslz | Posted 2006-05-02 12:27 |
| 铂金会员 Posts 2,315 Credits 5,493 From 上海 | |
|
Hehe, it's the autoexec.bat from Wuyou Boot, right?
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |