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 21:10
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Help] Does anyone understand the contents of this autoexec.bat? View 1,668 Replies 2
Original Poster Posted 2003-09-25 00:00 ·  中国 台湾 中华电信
初级用户
Credits 143
Posts 13
Joined 2003-09-23 00:00
22-year member
UID 10245
Gender Male
Status Offline
Does anyone understand the contents of this autoexec.bat?
autoexec.bat

  @ECHO Off xmsdsk 51200 /y

  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

  cls

  call setramd.bat %LglDrv%

  set temp=c:\

  set tmp=c:\

  path=%RAMD%:\;a:\;%CDROM%:
  copy command.com %RAMD%:\ > NUL

  set comspec=%RAMD%:\command.com

  copy extract.exe %RAMD%:\ > NUL

  %RAMD%:\extract /y /e /l %RAMD%: ebd.cab > NUL

  LH %ramd%:\MSCDEX.EXE /D:cd01 /L:%CDROM%

  icopy %cdrom%:\windows %ramd%:\windows /h /s

  set CDROM=

  set LglDrv=

  letassig %ramd%=c:

  win
Floor 2 Posted 2003-09-28 00:00 ·  中国 重庆 电信
银牌会员
★★★
Credits 2,202
Posts 499
Joined 2003-06-12 00:00
23-year member
UID 4876
Gender Male
Status Offline
It uses a memory-based virtual disk, then loads the CD-ROM drive, and copies the CD's windos directory to the virtual disk.
一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— !
Floor 3 Posted 2006-08-11 09:11 ·  中国 四川 成都 电信
初级用户
Credits 46
Posts 21
Joined 2006-08-06 17:24
20-year member
UID 59971
Status Offline
Then it sets the virtual disk as drive C:.

This is a netizen's DIY AUTOEXEC.BAT for portable WINDOWS.
Forum Jump: