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-06-25 08:59
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » (Resolved) Who can explain this autoexec.bat in the boot disk? View 2,059 Replies 4
Original Poster Posted 2002-11-04 00:00 ·  中国 浙江 温州 电信
初级用户
Credits 105
Posts 1
Joined 2002-11-04 00:00
23-year member
UID 147
Gender Male
Status Offline
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 ]
Floor 2 Posted 2002-11-04 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
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


我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 3 Posted 2002-11-04 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
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.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 4 Posted 2002-11-04 00:00 ·  中国 江苏 扬州 仪征市 电信
中级用户
★★
Credits 381
Posts 75
Joined 2002-10-15 00:00
23-year member
UID 6
Gender Male
Status Offline
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 ]
Floor 5 Posted 2006-05-02 12:27 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
Hehe, it's the autoexec.bat from Wuyou Boot, right?
Forum Jump: