|
今天无聊 修改了之前编写的 bat档
结果会找不到 src 这变数!?
请高手 协助 ><
@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
[ 本帖最后由 2011回忆爱情 于 2012-3-2 21:44 编辑 ] |
|