|
送给楼主我的BAT代码
NT5- @echo off
- mode con cols=40 lines=3 &color 0b
- TITLE Easynet WinPE Tools 6安装.....
- If not Exist D:\EZBAK md D:\EZBAK
- If not Exist C:\BOOT.INI goto :nobootini
- If Exist C:\BOOT.INI goto :bootini
- cls
- :nobootini
- echo 创建系统启动菜单BOOT.INI...请稍等...
- echo [boot loader]>>C:\boot.ini
- echo timeout=0>>C:\boot.ini
- echo default=C:\ezldr.mbr="[1;36mEasynet WinPE Tools 6" >>C:\boot.ini
- echo [operating systems]>>C:\boot.ini
- echo C:\ezldr.mbr="[1;36mEasynet WinPE Tools 6" >>C:\boot.ini
- goto :exit
- :bootini
- echo 更新系统启动菜单BOOT.INI...请稍等...
- copy C:\BOOT.INI C:\BOOT.INI.EZBAK
- attrib -s -h -r -a C:\BOOT.INI
- ECHO.>>C:\boot.ini
- echo C:\ezldr.mbr="[1;36mEasynet WinPE Tools 6" >>C:\boot.ini
- attrib +s +h +r +a C:\BOOT.INI
- attrib +s +h D:\EZBAK
- echo Easynet WinPE Tools 6安装成功
- :exit
- EXIT
复制代码
NT6(需要管理员权限)
- @echo off
- title 安装 易捷网络团队系统维护工具箱
- color 0B
- @ECHO OFF
- for /f "tokens=2" %%c in ('BCDEDIT /CREATE /D "Easynet WinPE Tools 6" /application bootsector ') do set id=%%c
- bcdedit /set %id% device partition=c:
- bcdedit /set %id% path \ezldr.mbr
- bcdedit /displayorder %id% /addlast
- bcdedit /timeout 3
- exit
复制代码
不知能不能满足你。 |
|