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-22 20:18
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » Seek help on partitioning a disk under DOS and copying files to a specified partition View 2,277 Replies 1
Original Poster Posted 2010-07-04 11:29 ·  中国 湖南 湘潭 电信
初级用户
Credits 28
Posts 12
Joined 2007-04-09 03:39
19-year member
UID 84439
Gender Male
Status Offline
I used the USB flash drive to mass-produce. I put a GHOSTXP.GHO into the CD-ROM partition of the USB flash drive.

I want to use the USB flash drive to boot and then copy this GHO file to the hard disk partition and run GHOST to restore it to the first partition of the disk. But I don't know how to assign drive letters to the disk partitions under DOS, and it's best to support NTFS partitions.

For example, after mass-producing the USB flash drive, there are two partitions, one is the CD-ROM partition and the other is the FAT partition.

The GHO file and GHSOT.EXE are in the root directory of the CD-ROM.

There are two situations for the hard disk partitions: the first partition is a FAT32 partition or the first partition is an NTFS partition.

Now I want to use the USB flash drive to boot and assign drive letters to the CD-ROM, the USB FAT partition, and the two hard disk partitions as C: D: E: F: respectively.

Then copy the GHO file in the root directory of the CD-ROM to the F: drive, and then start the CD-ROM's GHOST.exe to restore the GHO file in the F: drive to the E: drive.

Is there a friend who can help write a batch script? Thank you.
Floor 2 Posted 2010-07-19 12:46 ·  中国 辽宁 葫芦岛 联通
中级用户
★★
Credits 247
Posts 147
Joined 2009-04-09 20:52
17-year member
UID 142531
Gender Male
Status Offline
http://www.cn-dos.net/forum/viewthread.php?tid=49971&fpage=1
My DOS Toolbox

DOS device drivers include NTFS partition support, CD-ROM support, and USB device support
System backup and restore contains the functions you need
Forum Jump: