echo ****精工出品
echo.
echo (撒手不管版)
echo ╭───────────────╮
echo │ │
echo ╭─┤ Windows 备 份 还 原 小 助 手 ├─╮
echo │ │ │ │
echo │ ╰───────────────╯ │
echo │ 注意本软件仅为你保存最多五个备份 │
echo │ │
echo │ ☆ 操作选项 ☆ │
echo │ │
echo │ 1.系统备份 2.系统还原 3.退出 │
echo ╰───────────────────╯
echo.
set start=
set /p start= 输入(1 2 3)后按回车键:
if "%start%"=="1" goto bf
if "%start%"=="2" goto hy
if "%start%"=="3" goto :eof
goto index
:bf
if %count% equ 3 attrib -r -s -h f:\%first%&&del f:\%first%
attrib -r -s -h c:\boot.ini
copy c:\ghost\c启动.ini c:\boot.ini
echo cd\>c:\AUTOEXEC.BAT
echo cd ghost>>c:\AUTOEXEC.BAT
echo copy c:\ghost\boot.ini c:\>>c:\AUTOEXEC.BAT
echo Ghost.exe -clone,mode=pdump,src=1:2,dst=1:4\%date:~0,4%%date:~5,2%%date:~8,2%.gho -z9 -sure -rb>>c:\AUTOEXEC.BAT
msg %username% /time:20 ":)正在对系统盘进行病毒扫描,扫描完成后将进行备份:)"
for /f "delims=" %%e in ('fsutil fsinfo drives^|find /v ""') do (
set var=%%e
set drive=!var:~-2!
fsutil fsinfo drivetype !drive:~0,2!|find "固定">nul && for /f "tokens=*" %%j in ('dir /a-d /b /s !drive!\avp.com 2^>nul') do if not "%%j"=="" "%%j" scan /memory d:\
)
echo echo.^>c:\AUTOEXEC.BAT>E:\自编程序区\善后.bat
echo attrib.exe +r +s +h c:\boot.ini>>E:\自编程序区\善后.bat
echo ren f:\%date:~0,4%%date:~5,2%%date:~8,2%.gho %date:~0,4%%date:~5,2%%date:~8,2%.bf>>E:\自编程序区\善后.bat
echo attrib +r +s +h f:\%date:~0,4%%date:~5,2%%date:~8,2%.bf>>E:\自编程序区\善后.bat
echo del f:\备份还原.txt>>E:\自编程序区\善后.bat
echo del "C:\Personal\****\「开始」菜单\程序\启动\善后.bat.lnk">>E:\自编程序区\善后.bat
goto end