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-23 23:15
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » Experts, please advise on a difficult problem in making a floppy boot disk View 765 Replies 1
Original Poster Posted 2004-01-07 00:00 ·  中国 广东 河源 电信
高级用户
★★
Credits 916
Posts 201
Joined 2003-05-04 00:00
23-year member
UID 1849
Gender Male
Status Offline
I want to achieve this: after booting the computer from a floppy disk, it shows

Press:

Number key "1" — back up the system
Number key "2" — restore the system
Number key "3" — exit to DOS

Then once number key "1" is pressed, it will automatically look for the last hard disk partition as the partition for storing the GHO file,
then do the backup, and after the backup is finished it will automatically run a command like "gdisk.exe 1 /hide /p:3" to hide the partition. The difficult point is how can gdisk automatically change the /p:3 parameter?

gdisk usage:
gdisk.exe 1 /hide /p:3 hides the third partition
gdisk.exe 1 /hide /p:4 hides the fourth partition
...and so on
Floor 2 Posted 2004-01-07 00:00 ·  中国 辽宁 沈阳 联通
初级用户
★★
Credits 672
Posts 216
Joined 2003-06-12 00:00
23-year member
UID 4976
Gender Female
Status Offline
I’ve never used gdisk, but there are experts here in this area, look around yourself.
我是女孩,我怕谁?
Forum Jump: