終於成功了 看-->> #4
@echo off
COLOR 0a
MODE con: COLS=74 LINES=26
:ghost
cls
echo Ghost系列....
echo.
echo.
echo [1] Partition To Image
echo.
echo [2] Partition From Image
echo.
echo [3] Partition To Partition
echo.
echo [4] Disk To Image
echo.
echo [5] Disk From Image
echo.
echo [6] Disk To Disk
echo.
Set /P Choice= 请输入运行动做:
cls
:pdr
echo 盘符 磁区代号 活动磁区 磁碟名称 磁碟容量 磁碟剩余容量
dsptw /a /pdr /y
if /i '%Choice%'=='1' Goto C1
if /I '%Choice%'=='22' Goto C2
if /I '%Choice%'=='333' Goto C3
if /I '%Choice%'=='4444' Goto C4
if /I '%Choice%'=='55555' Goto C5
if /I '%Choice%'=='666666' Goto C6
goto errorCH
:C1
echo 选择 [1] Partition To Image
set /p mode=pdump
echo.
set /p src= src(备份磁区):
echo.
set /p gho= gho(档名.gho):
echo.
set /p dst= dst(存放位置):
goto GPW1
:C2
echo 选择 [2] Partition From Image
set /p mode=pload
echo.
set /p src= gho(存放位置):
echo.
set /p gho= gho(档名.gho):
echo.
set /p dst= dst(还原磁区):
goto GPW1
:C3
echo 选择 [3] Partition To Partition
set /p mode=pcopy
echo.
set /p src= src(备份磁区):
echo.
set /p dst= dst(还原磁区):
goto GPW2
:C4
echo 选择 [4] Disk To Image
set /p mode=dump
echo.
set /p src= src(备份硬碟):
echo.
set /p gho= gho(档名.gho):
echo.
set /p dst= dst(存放位置):
goto GPW1
:C5
echo 选择 [5] Disk From Image
set /p mode=load
echo.
set /p src= gho(存放位置):
echo.
set /p gho= gho(档名.gho):
echo.
set /p dst= dst(还原硬碟):
goto GPW1
:C6
echo 选择 [6] Disk To Disk
set /p mode=copy
echo.
set /p src= src(备份硬碟):
echo.
set /p dst= dst(还原硬碟):
goto GPW2
:GPW1
echo 请确认磁区位置
set /p pw= 确认密码:
if not "%pw%"=="123456" goto errorPW
ghost32 -clone,mode=%mode%,src=%src%,dst=%dat%\%gho%.gho -sure -fx
goto end
:GPW2
echo 请确认磁区位置
set /p pw= 确认密码:
if not "%pw%"=="123456" goto errorPW
ghost32 -clone,mode=%mode%,src=%src%,dst=%dat% -sure -fx
goto end
:errorPW
echo 密码错误...
goto end
:errorCH
echo 选择错误..再来一次....
pause
goto ghost
:end
pause
Snap0.jpg (49.11 KB, 下载次数: 65)
Snap4.jpg (103.72 KB, 下载次数: 70)
安全代码:备份到 GHO :123456
还原系列:654321
23.69 KB, 下载次数: 65, 下载积分: 无忧币 -2
ghost32 -clone,mode=%mode%,src=%G%,dst=%dst% -sure -fx
%G% = 1:1\win.gho
%G% = 2:5\ox\x.gho
欢迎光临 无忧启动论坛 (http://wuyou.net./) | Powered by Discuz! X3.3 |