I practiced making a system install/backup/restore boot disk that includes GHOST7.5, and I sincerely ask the moderator and everyone to give advice, make changes, and help improve it. Thank you!
Since I don't understand DOS, there will definitely be many places that make everyone laugh, so please forgive me and help me out.
Is it possible to intelligently back up the image to the last partition of the hard disk.
What commonly used tools should be added.
@echo off
set EXPAND=YES
SET DIRCMD=/O:N
set comspec=a:\command.com
path=a:\;c:\
lh a:\TW /np
lh a:\mouse.exe
lh a:\mscdex.exe /d:mscd001
lh a:\doskey
lh a:\smartdrv
lh a:\ntfsdos
cls
echo.
echo.
echo.
echo.
cls
echo.
echo ====================
echo ★ “Magic” System Install Backup Restore Boot Disk ★
echo ======= Made by: QEYU =======
echo.
echo This install boot disk was made based on the Windows Millennium (MS-DOS 8.0) Bootdisk,
echo and is suitable for system installation under DOS, GHOST operations, etc.
echo During the making of this boot disk, I received technical support from China DOS Union and
echo CCF Quality Technology Forum, and I would like to express my thanks here.
echo.
echo ○ This boot disk has automatically loaded HIMEM and SMARTDRV, and can directly install operating systems.
echo ○ It can run the FDISK program to partition the hard disk.
echo ○ You can use the FORMAT command to format partitions.
echo ○ It can perform GHOST operations such as automatic or manual system backup and system restore.
echo.
echo.
echo ■ Operation menu:
echo.
echo 1 ─ Automatic system backup
echo 2 ─ Automatic system restore
echo 3 ─ Manual GHOST operation
echo 4 ─ Enter DOS prompt
echo.
choice /c:1234 ▲ Please press the number of the item listed above to make your selection
if errorlevel 4 goto tishifu
if errorlevel 3 goto shoudong
if errorlevel 2 goto huifu
if errorlevel 1 goto beifen
:beifen
echo.
echo You have selected automatic system backup. Please wait...
a:\ghost.exe -clone,mode=pdump,src=1:1,dst=d:\system.gho -sure
echo.
echo.
echo ◇ Automatic system backup is complete. Please remove the floppy disk and press Ctrl+Alt+Del to restart the system.
goto end
:huifu
echo.
echo You have selected automatic system restore. Please wait...
a:\ghost.exe -clone,mode=pload,src=d:\system.gho:1,dst=1:1 -sure
echo.
echo.
echo ◇ Automatic system restore is complete. Please remove the floppy disk and press Ctrl+Alt+Del to restart the system.
goto end
:shoudong
echo.
echo You have selected manual GHOST operation. Please wait while entering the GHOST interface...
a:\ghost.exe
echo.
echo.
echo ◇ Please carry out other operations, or press Ctrl+Alt+Del to restart the system.
goto end
:tishifu
cls
echo.
:end
echo.
device=a:\himem.sys /testmem
ff
devicehigh=a:\vide-cdd.sys /d:mscd001
dos=high,umb,auto
files=30
buffers=30
stacks=9,256
lastdrive=Z
Since I don't understand DOS, there will definitely be many places that make everyone laugh, so please forgive me and help me out.
Is it possible to intelligently back up the image to the last partition of the hard disk.
What commonly used tools should be added.
@echo off
set EXPAND=YES
SET DIRCMD=/O:N
set comspec=a:\command.com
path=a:\;c:\
lh a:\TW /np
lh a:\mouse.exe
lh a:\mscdex.exe /d:mscd001
lh a:\doskey
lh a:\smartdrv
lh a:\ntfsdos
cls
echo.
echo.
echo.
echo.
cls
echo.
echo ====================
echo ★ “Magic” System Install Backup Restore Boot Disk ★
echo ======= Made by: QEYU =======
echo.
echo This install boot disk was made based on the Windows Millennium (MS-DOS 8.0) Bootdisk,
echo and is suitable for system installation under DOS, GHOST operations, etc.
echo During the making of this boot disk, I received technical support from China DOS Union and
echo CCF Quality Technology Forum, and I would like to express my thanks here.
echo.
echo ○ This boot disk has automatically loaded HIMEM and SMARTDRV, and can directly install operating systems.
echo ○ It can run the FDISK program to partition the hard disk.
echo ○ You can use the FORMAT command to format partitions.
echo ○ It can perform GHOST operations such as automatic or manual system backup and system restore.
echo.
echo.
echo ■ Operation menu:
echo.
echo 1 ─ Automatic system backup
echo 2 ─ Automatic system restore
echo 3 ─ Manual GHOST operation
echo 4 ─ Enter DOS prompt
echo.
choice /c:1234 ▲ Please press the number of the item listed above to make your selection
if errorlevel 4 goto tishifu
if errorlevel 3 goto shoudong
if errorlevel 2 goto huifu
if errorlevel 1 goto beifen
:beifen
echo.
echo You have selected automatic system backup. Please wait...
a:\ghost.exe -clone,mode=pdump,src=1:1,dst=d:\system.gho -sure
echo.
echo.
echo ◇ Automatic system backup is complete. Please remove the floppy disk and press Ctrl+Alt+Del to restart the system.
goto end
:huifu
echo.
echo You have selected automatic system restore. Please wait...
a:\ghost.exe -clone,mode=pload,src=d:\system.gho:1,dst=1:1 -sure
echo.
echo.
echo ◇ Automatic system restore is complete. Please remove the floppy disk and press Ctrl+Alt+Del to restart the system.
goto end
:shoudong
echo.
echo You have selected manual GHOST operation. Please wait while entering the GHOST interface...
a:\ghost.exe
echo.
echo.
echo ◇ Please carry out other operations, or press Ctrl+Alt+Del to restart the system.
goto end
:tishifu
cls
echo.
:end
echo.
device=a:\himem.sys /testmem
ffdevicehigh=a:\vide-cdd.sys /d:mscd001
dos=high,umb,auto
files=30
buffers=30
stacks=9,256
lastdrive=Z





do if exist %%a\%get% dir /b /s %%a\%get% >>%ramdrive%\backup.bat