多谢寒夜孤星,比以前方便多了。最后后写成这样的。- @echo off
- del ghststat.txt
- ghost -dd
- @echo off&setlocal enabledelayedexpansion
- for /f "delims=" %%a in (GHSTSTAT.txt) do set "a=%%a"&if not "!a!"=="!a:Drive 0=!" if not "!a!"=="!a:Kingston=!" goto:han
- echo.注意对应机型&pause&ghost.exe -clone,mode=load,src=3.1\429x.gho,dst=1, -sure -rb
- exit
- :han
- echo.注意对应机型:%a%&pause&ghost.exe -clone,mode=load,src=3.1\429x.gho,dst=2, -sure -rb
- exit
复制代码
|