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-07-25 06:47
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » Can a Ghost boot disk automatically eject the current CD after finishing the job? View 3,217 Replies 32
Original Poster Posted 2005-09-29 12:39 ·  中国 北京 歌华宽带
初级用户
Credits 41
Posts 20
Joined 2005-09-23 22:43
20-year member
UID 42769
Status Offline
Dear DOS experts:
By learning from this forum, I made a Ghost restore boot CD. First of all, thank you.
Now I have another question:
After it finishes the restore task, I want it to automatically eject and then reboot the system. Can this be done?
Does Ghost have such a parameter? Is there such a DOS program?
Thanks!

I found some DOS programs on the forum, but they all eject the first CD-ROM drive. Is there one that ejects the second (slave) CD-ROM drive? Or eject a CD-ROM drive specified by a parameter, such as: open %CDROM1%,OPEN %CDROM2%
Thanks again!

[ Last edited by coastline on 2005-9-29 at 13:36 ]
Floor 2 Posted 2005-10-02 08:56 ·  中国 安徽 宿州 泗县 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
I have an Eject command here. It can eject all CD-Rom drives. You can add this to a batch file: Eject Wait 5 Reboot. That means after ejecting the CD-ROM drive, let the system wait 5 seconds and then reboot. If you think 5 seconds is too short, you can change it to 10 or some other number.
Floor 3 Posted 2005-10-06 04:20 ·  中国 广东 深圳 罗湖区 电信
初级用户
Credits 154
Posts 8
Joined 2005-10-06 03:46
20-year member
UID 43154
Status Offline
Eject — reboot — then the CD-ROM drive closes the tray again automatically == ejecting has no effect
Making a boot CD that will automatically switch to booting from the hard disk if there is no keyboard input within the default time is the real solution.
Floor 4 Posted 2005-10-06 10:13 ·  中国 广东 东莞 电信
初级用户
Credits 190
Posts 40
Joined 2005-03-17 00:00
21-year member
UID 37149
Gender Male
Status Offline
Hi chujiafu
Eject doesn't seem to be an internal command. Could you upload one? I searched and they all seem to be for Winodws.
Thanks!
Floor 5 Posted 2005-10-07 16:47 ·  中国 湖北 荆州 电信
中级用户
★★
Credits 281
Posts 51
Joined 2003-01-05 00:00
23-year member
UID 684
Gender Male
Status Offline
I have a tool here for opening and closing CDs. Hope you like it http://passionwq.ys168.com
Floor 6 Posted 2005-10-08 00:22 ·  中国 北京 263网络通信股份有限公司
初级用户
Credits 41
Posts 20
Joined 2005-09-23 22:43
20-year member
UID 42769
Status Offline
Floor 7 Posted 2005-10-08 20:18 ·  中国 广东 广州 海珠区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 8 Posted 2005-10-09 11:34 ·  中国 北京 歌华宽带
初级用户
Credits 41
Posts 20
Joined 2005-09-23 22:43
20-year member
UID 42769
Status Offline
Floor 9 Posted 2005-10-09 12:52 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 10 Posted 2005-10-09 14:24 ·  中国 北京 歌华宽带
初级用户
Credits 41
Posts 20
Joined 2005-09-23 22:43
20-year member
UID 42769
Status Offline
Originally posted by qwe1234567 at 2005-10-9 12:52:
有点难度。


Brother, here's a challenge for you!
Because I saw your interest: DOS and batch programming

I have an xx laptop. On its recovery CD there is a PREINST.GHO file. When opened with Ghost Explorer under Windows, it requires a password, but when the machine is rebooted with this CD, no password is needed. I figure there must be something going on in the bat file... I also crawled out of the DOS era and like DOS too ... I didn't believe I couldn't crack it, but in the end I still couldn't ... My level is limited; after all, this is only the primary stage of socialism

Actually, it's not really for anything else, I just want to figure out how it does that...

I'm attaching the file. If you're interested and have time, would you take a look?

Please forgive me if this is presumptuous!
Attachments
BOOTIMG.part1.rar (200 KiB, Credits to download 1 pts, Downloads: 19)
Floor 11 Posted 2005-10-09 14:25 ·  中国 北京 歌华宽带
初级用户
Credits 41
Posts 20
Joined 2005-09-23 22:43
20-year member
UID 42769
Status Offline
Attachments
BOOTIMG.part2.rar (200 KiB, Credits to download 1 pts, Downloads: 18)
Floor 12 Posted 2005-10-09 14:26 ·  中国 北京 歌华宽带
初级用户
Credits 41
Posts 20
Joined 2005-09-23 22:43
20-year member
UID 42769
Status Offline
Attachments
BOOTIMG.part3.rar (124.1 KiB, Credits to download 1 pts, Downloads: 16)
Floor 13 Posted 2005-10-09 16:25 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 14 Posted 2005-10-09 16:53 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Floor 15 Posted 2005-10-09 17:13 ·  中国 四川 南充 电信
超级版主
★★★★
我爱DOS
Credits 5,310
Posts 2,044
Joined 2005-09-26 12:00
20-year member
UID 42843
Gender Male
From 四川南充
Status Offline
Forum Jump: