Quote: | |
|
Quote: | |
|
未命名.JPG (22.15 KB, 下载次数: 63)
原帖由 ww111222 于 2007-8-19 03:46 PM 发表
type test.bat
Quote:@echo off
rem 检测备份分区 设置Drive为备份分区盘符
SET Drive=null
for %%z in (c d e f g h i j k l m n o p q r s t u v w ) do call 1.bat %%z >nul
if %Drive%==n ...
原帖由 lzyyj 于 2007-8-20 01:18 AM 发表
你把 for 循环改一下就行了
for %%z in (c d e f g h i j k l m n o p q r s t u v w ) do if exist %%z:\nul call 1.BAT %%z >nul
避免测试那些无效的驱动器!
....
:f11set 传输一键恢复系统文件→隐藏分区=========================
%RAMDRIVE%
CD\
set drives=
for %%i in (C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W:) DO Call IsReady %%i
for %%i in (%drives%) DO call ChkLabel.bat %%i
if not %found%"==" goto F11_INST
WBAT BOX "找不到一键ghost恢复系统分区(SYS_RESTORE)分区的盘符!",查看分区情况,返回主菜单 # +1
IF ERRORLEVEL 2 goto main menu
IF ERRORLEVEL 1 goto lookPART
.....
@echo off
set chkdrv=%1
if %chkdrv%"==" goto quit
vol %chkdrv% | lmod /L1 set label=[$!] >%RAMDRIVE%\IsExist.bat
call %RAMDRIVE%\IsExist.bat
if "SYS_RESTORE"=="%label%" set found=%chkdrv%
:quit
set chkdrv=
@echo off
if %1'==' goto quit
dready %1
if errorlevel 1 goto quit
if errorlevel 0 goto cdtag
goto quit
:cdtag
if exist "%1\BOOT\CHKCD.TAG" set CDDRIVE=%1
:quit
欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) | Powered by Discuz! X3.3 |