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-30 16:33
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Then, can a friend help make such a batch processing~ View 2,036 Replies 7
Original Poster Posted 2006-08-27 00:38 ·  中国 吉林 延边朝鲜族自治州 延吉市 联通
初级用户
Credits 70
Posts 23
Joined 2006-08-25 05:23
19-year member
UID 61222
Status Offline
I want to make it so that as long as I put the CD into any CD drive, the GHOST file on the CD will automatically run and restore to the C drive. How should I do it?
Floor 2 Posted 2006-08-27 01:25 ·  中国 四川 成都 鹏博士宽带
荣誉版主
★★★★
batch fan
Credits 5,226
Posts 1,737
Joined 2006-03-10 00:38
20-year member
UID 51697
From 成都
Status Offline
Putting an autorun.inf file on the CD can achieve the intention of the thread starter.
尺有所短,寸有所长,学好CMD没商量。
考虑问题复杂化,解决问题简洁化。
Floor 3 Posted 2006-08-27 13:37 ·  中国 吉林 延边朝鲜族自治州 延吉市 联通
初级用户
Credits 70
Posts 23
Joined 2006-08-25 05:23
19-year member
UID 61222
Status Offline
Oh, it's about achieving it after DOS boots up. Hehe, I'm sorry I didn't make it clear.
Floor 4 Posted 2006-08-27 14:17 ·  中国 上海 浦东新区 电信
金牌会员
★★★★
Credits 3,467
Posts 1,616
Joined 2004-06-21 00:00
22-year member
UID 27148
Status Offline
There is no CD auto-run function in DOS.
Floor 5 Posted 2006-08-28 08:56 ·  中国 吉林 延边朝鲜族自治州 延吉市 联通
初级用户
Credits 70
Posts 23
Joined 2006-08-25 05:23
19-year member
UID 61222
Status Offline
Floor 6 Posted 2006-08-28 10:31 ·  中国 上海 松江区 电信
铂金会员
★★★★
DOS一根葱
Credits 5,493
Posts 2,315
Joined 2006-05-01 10:41
20-year member
UID 54766
Gender Male
From 上海
Status Offline
CONFIG.SYS content
DEVICE=HIMEM.SYS /TESTMEM:OFF /Q
DEVICE=UMBPCI.SYS
DEVICE=QCDROM.SYS /D:IDE-CD /UF /L
DEVICEHIGH=RAMDRIVE.SYS /E 4096
SHELL=COMMAND.COM /E:1024 /P /F
DOS=HIGH,UMB,AUTO
FCBSHIGH=4,0
FILESHIGH=30
BUFFERSHIGH=20,0
STACKSHIGH=9,256
LASTDRIVEHIGH=Z

AUTOEXEC.BAT content
@ECHO OFF
PROMPT $P$G
SET EXPAND=YES
SET DIRCMD=/OGN /4
cls
PATH=A:\;%CDROM%:\;%RAMD%:\
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%
COPY COMMAND.COM %RAMD%:\>NUL
SET COMSPEC=%RAMD%:\COMMAND.COM
COPY /Y A:\SHCDX33A.COM %RAMD%:\>NUL
COPY /Y A:\DOSKEY.COM %RAMD%:\>NUL
COPY /Y A:\CTMOUSE.EXE %RAMD%:\>NUL
COPY /Y %CDROM%:\GHOST.EXE %RAMD%:\>NUL
%RAMD%:
SHCDX33A.COM /D:IDE-CD /C
LH DOSKEY>NUL
LH CTMOUSE>NUL
SET LglDrv=
ghost.exe -clone,mode=pload,src=%CDROM%:\SYSTEM.gho:1,dst=1:1 -fro -sure -rb

Reference posts
http://www.cn-dos.net/forum/viewthread.php?tid=22581&fpage=1&highlight=

http://www.cn-dos.net/forum/viewthread.php?tid=22781&fpage=1&highlight=
Floor 7 Posted 2006-08-28 18:49 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
初级用户
Credits 70
Posts 23
Joined 2006-08-25 05:23
19-year member
UID 61222
Status Offline
Thanks to fastslz, I'm working on it.
Floor 8 Posted 2006-09-08 06:21 ·  中国 安徽 宿州 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
Use Autoexec.bat.
Forum Jump: