无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 2557|回复: 4
打印 上一主题 下一主题

求如何识别usb的hdd模式

[复制链接]
跳转到指定楼层
1#
发表于 2009-5-28 14:46:26 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我做了一个U盘启动盘。现在我想实现加上一个一键自动还原系统到C盘的功能,就像ghost系统一样。
但是U盘现在是本地磁盘模式,而且每台电脑的分区都不一样,如何些命令识别这个分区时几呢?
原usbdos里面的命令式将D盘某目录下的ghost文件还原,那个路径可以直接写第二分区,那么这个本地U盘怎么写呢?


原usbdos的菜单文件也看不大懂,如何在这个基础上改一下呢,请大侠指教!!!
file:///C:/DOCUME~1/IBM/LOCALS~1/Temp/NM`L5{9}8KN]R)(K`BK0ZCF.jpg
2#
 楼主| 发表于 2009-5-30 21:30:54 | 只看该作者
若若的问问诸位,难道是这个问题太简单大家不屑于回答吗?
可是我真的不会呀,看了一些帖子也看不懂,我只是初中水平,现在搞个体户需要这个.请大家帮帮创业的农民兄弟吧
回复

使用道具 举报

3#
发表于 2009-5-30 21:42:41 | 只看该作者
http://bbs.wuyou.net/forum.php?m ... ;page=35#pid1698006
此帖348楼的工具你可以关注下

另许本坛有些能U+的iso也许也能适合你的要求的 就不一一介绍了 lz可以自己多逛逛看
回复

使用道具 举报

4#
发表于 2009-5-30 22:08:39 | 只看该作者
以下是本人U盘启动系统里面的全自动恢复系统批处理,仅供参考
红色部分为命令



@ECHO OFF
tw /np /nm /nw >nul
rem U盘启动系统_全自动恢复系统
rem 这个批处理由 神(_喌乄龍 原创,用于 龙行天下 U盘启动维护系统
rem blog:hi.baidu.com/353999772   mail:szl1123@163.com
rem 修改时请保留此信息
mouse.exe >nul
path a:\
set UPan=
set UboSzl=boot\uboot.SZL
set num=2
cls
:MENU
call w.bat box (+white on +blue) @autoexec.bat:MENU_ #%num%,5
if errorlevel 100 goto MENU
if "%?%"=="3" goto R
if "%?%"=="2" goto AGHOST_
if "%?%"=="1" goto MGHOST_
:MENU_ "全自动恢复系统    by szl1123"[x]
              龙行天下 U盘启动维护系统
    USB驱动加载状态:%DriSta%
    --------------------------------------------   
             [  &G. 运行GHOST手动操作  ]
             [  &A. 全自动恢复系统     ]
             [  &R. 重启计算机         ]

               #?秒后高亮选项自动运行
:MGHOST_
set num=2
set ghost=MGHOST
goto MGHOST
:AGHOST_
set num=1
set ghost=AGHOST
goto AGHOST
:FIND
echo.
echo     正在设定U盘盘符:
if exist z:\%UboSzl% set UPan=z:
IF not "%UPan%"=="" GOTO pf
if exist y:\%UboSzl% set UPan=y:
IF not "%UPan%"=="" GOTO pf
if exist x:\%UboSzl% set UPan=x:
IF not "%UPan%"=="" GOTO pf
if exist w:\%UboSzl% set UPan=w:
IF not "%UPan%"=="" GOTO pf
if exist v:\%UboSzl% set UPan=v:
IF not "%UPan%"=="" GOTO pf
if exist u:\%UboSzl% set UPan=u:
IF not "%UPan%"=="" GOTO pf
if exist t:\%UboSzl% set UPan=t:
IF not "%UPan%"=="" GOTO pf
if exist s:\%UboSzl% set UPan=s:
IF not "%UPan%"=="" GOTO pf
if exist r:\%UboSzl% set UPan=r:
IF not "%UPan%"=="" GOTO pf
if exist q:\%UboSzl% set UPan=q:
IF not "%UPan%"=="" GOTO pf
if exist p:\%UboSzl% set UPan=p:
IF not "%UPan%"=="" GOTO pf
if exist o:\%UboSzl% set UPan=o:
IF not "%UPan%"=="" GOTO pf
if exist n:\%UboSzl% set UPan=n:
IF not "%UPan%"=="" GOTO pf
if exist m:\%UboSzl% set UPan=m:
IF not "%UPan%"=="" GOTO pf
if exist l:\%UboSzl% set UPan=l:
IF not "%UPan%"=="" GOTO pf
if exist k:\%UboSzl% set UPan=k:
IF not "%UPan%"=="" GOTO pf
if exist j:\%UboSzl% set UPan=j:
IF not "%UPan%"=="" GOTO pf
if exist i:\%UboSzl% set UPan=i:
IF not "%UPan%"=="" GOTO pf
if exist h:\%UboSzl% set UPan=h:
IF not "%UPan%"=="" GOTO pf
if exist g:\%UboSzl% set UPan=g:
IF not "%UPan%"=="" GOTO pf
if exist f:\%UboSzl% set UPan=f:
IF not "%UPan%"=="" GOTO pf
if exist e:\%UboSzl% set UPan=e:
IF not "%UPan%"=="" GOTO pf
if exist d:\%UboSzl% set UPan=d:
IF not "%UPan%"=="" GOTO pf
if exist c:\%UboSzl% set UPan=c:
IF not "%UPan%"=="" GOTO pf
if exist b:\%UboSzl% set UPan=b:
IF not "%UPan%"=="" GOTO pf
if exist a:\%UboSzl% set UPan=a:
IF not "%UPan%"=="" GOTO pf
GOTO ERROR_
:pf
if not exist %upan%\boot\imgs\GFiles\ghost.SZL goto ERROR_
echo               U盘盘符是 %upan%
echo.
echo          正在复制文件   :
echo               [ 1-1 ] ghost.exe
if not exist a:\ghost.exe copy %upan%\boot\imgs\GFiles\ghost.SZL a:\ghost.exe >nul
echo.
echo          文件复制完毕   :   OK
goto %ghost%
:AGHOST
if not exist a:\ghost.exe goto find
echo.
echo.
echo                               程序正在启动···
echo.
echo.                                请 稍 后
ghost.exe -clone,mode=pload,src=%Upan%\ghost\ImaRec.gho:1,dst=2:1 -fro -rb -sure >nul
GOTO MGHOST
:MGHOST
if not exist a:\ghost.exe goto find
echo.
echo.
echo                               程序正在启动···
echo.
echo.                                请 稍 后
ghost.exe -fx >nul
GOTO RESET_
:RESET_
call w.bat box (+white on +blue) @autoexec.bat:RESET #1,5
if errorlevel 100 goto R
if "%?%"=="2" goto MENU
if "%?%"=="1" goto R
:RESET "全自动恢复系统   by szl1123"[x]
          感谢使用 龙行天下 U盘启动维护系统
    USB驱动加载状态:%DriSta%
    --------------------------------------------   
   
         制作:神  州  龙     河南·禹州
         邮箱:S z L 1 1 2 3 @ 1 6 3.C o M
         博客:hi.baidu.com/353999772

      [ &R. 重启计算机 ]      [ &M. 返回主菜单 ]
              #? 秒后高亮选项自动运行
:ERROR_
call w.bat box (+white on +blue) @autoexec.bat:ERROR #1,5
if errorlevel 100 goto R
if "%?%"=="1" goto R
:ERROR "全自动恢复系统    by szl1123"[x]
              龙行天下 U盘启动维护系统
    --------------------------------------------   
        错误:文件未找到, #? 秒后重启计算机

                     [ &R. 确定 ]
:R
r.com

[ 本帖最后由 szl1990 于 2009-5-30 22:11 编辑 ]

autoexec.rar

1.21 KB, 下载次数: 44, 下载积分: 无忧币 -2

回复

使用道具 举报

5#
发表于 2009-5-31 10:19:33 | 只看该作者
见本论坛《用UltraISO9.3制作高兼容多合一启动U盘》,链接地址:
http://bbs.wuyou.net/forum.php?m ... &extra=page%3D1
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-7-29 23:04

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表