|
2#
楼主 |
发表于 2020-3-2 15:56:25
|
只看该作者
本帖最后由 cuicongyuan 于 2020-3-2 16:17 编辑
原 PE 里的 “配置.bat” :
@echo off
call :link "osk.exe %Programs%\附件工具\屏幕键盘"
call :link "diskmgmt.msc %Programs%\管理工具\磁盘管理"
call :link "devmgmt.msc %Programs%\管理工具\设备管理器"
call :link "pecmd.exe %Programs%\重启桌面,pecmd.exe,kill explorer.exe"
call :link "Imdisk.cpl %Programs%\虚拟磁盘\Imdisk,control.exe,Imdisk.cpl"
call :link "7zFM.exe %Programs%\解压软件\7-Zip"
call :link "Notepad2.exe %Programs%\文字处理\Notepad2" "Notepad2.exe %QuickLaunch%\User Pinned\StartMenu\Notepad2"
call :link "PENetwork.exe %Programs%\网络连接\PENetwork" "PENetwork.exe %QuickLaunch%\User Pinned\StartMenu\PENetwork"
call :link "chrome.exe %Programs%\网络浏览\Chrome"
call :link "ThunderMini.exe %Programs%\网络下载\ThunderMini"
call :link "TrueImage.exe %Programs%\备份还原\ATI" "TrueImage.exe %Desktop%\ATI"
call :link "imagew64.exe %Programs%\备份还原\Image for Windows" "imagew64.exe %Desktop%\Image for Windows"
call :link "CGI.ico %Programs%\备份还原\CGI,%~dp0CGI\CGI.wcz," "CGI.ico %Desktop%\CGI,%~dp0CGI\CGI.wcz,"
call :link "Ghost64.exe %Programs%\备份还原\Ghost" "Ghost64.exe %Desktop%\Ghost"
call :link "DiskGenius.exe %Programs%\磁盘分区\DiskGenius" "DiskGenius.exe %Desktop%\DiskGenius"
call :link "PartAssist.exe %Programs%\磁盘分区\PartAssist" "PartAssist.exe %Desktop%\PartAssist"
call :link "Booticex64.exe %Programs%\磁盘分区\Bootice" "Booticex64.exe %Desktop%\Bootice"
call :link "HDTunePro.exe %Programs%\设备检测\HDTunePro" "HDTunePro.exe %Desktop%\HDTunePro"
call :link "DisplayX.exe %Programs%\设备检测\DisplayX" "DisplayX.exe %Desktop%\DisplayX"
call :link "GImageX.exe %Programs%\镜像处理\GImageX" "GImageX.exe %Desktop%\GImageX"
call :link "WinSnap.exe %Programs%\图像处理\WinSnap"
call :link "Imagine64.exe %Programs%\图像处理\Imagine"
call :link "WinNTSetup_x64.exe %Programs%\系统安装\WinNTSetup" "WinNTSetup_x64.exe %Desktop%\WinNTSetup"
call :link "RegWorkshop.exe %Programs%\系统修改\RegWorkshop" "RegWorkshop.exe %Desktop%\RegWorkshop"
call :link "Ntbootautofix.exe %Programs%\系统修改\Ntbootautofix" "Ntbootautofix.exe %Desktop%\Ntbootautofix"
call :link "NTPWEdit.exe %Programs%\系统修改\NTPWEdit" "NTPWEdit.exe %Desktop%\NTPWEdit"
call :link "Dism++x64.exe %Programs%\系统优化\Dism++" "Dism++x64.exe %Desktop%\Dism++"
call :hotk "Winsnap.exe F11"
for /f %%a in ('mountvol ^| find ":\"') do (
for %%b in ("%%aSources\*64*.iso" "%%aSources\PE*64*.wim") do (start pecmd.exe link "%Desktop%\%%~nb","%%~b")
for /d %%b in ("%%aSources\*64*") do (
for %%c in ("%%~b\*.reg") do (start regedit.exe /s "%%~c")
for %%c in ("%%~b\*.ini") do (start pecmd.exe load "%%~c")
for %%c in ("%%~b\*.cmd" "%%~b\*.bat") do (start pecmd.exe exec !"%%~c")
for %%c in ("%%~b\*.7z") do ("%~dp07-Zip\7z.exe" x "%%~c" -y -o"%~dp0")
for %%c in ("%%~b\*.wim") do (pecmd.exe exec !"%~dp0操作.bat" "%%~c")
)
)
for %%a in ("%~dp0*.reg" "%~dp0*.ini" "%~dp0*.cmd" "%~dp0*.bat") do (if not "%%~fa"=="%~0" call :exec "%%~a")
call :exec install.reg install.bat "Imagine64.exe /assocext /regcontextmenu"
call :pint chrome.exe ThunderMini.exe osk.exe
for %%a in ("%Programs%" "%Programs%\Administrative Tools" "%Programs%\StartUp") do (if exist %%a attrib.exe +h %%a)
exit
:link
:pint
:hotk
:exec
for %%a in (%*) do (
if exist "%%~a" (
call %0start "%%~a"
) else for /f "tokens=1*" %%b in ("%%~a") do (
if exist "%%~b" (
call %0start "%%~b" "%%~c"
) else for /r "%~dp0" %%i in (%%b) do (
if exist "%%~i" (
call %0start "%%~i" "%%~c"
)
)
)
)
goto :eof
:linkstart
start PECMD.EXE LINK %~2,%1
goto :eof
:pintstart
if not exist "%Temp%\explorer.exe" copy /y pecmd.exe "%Temp%\explorer.exe"
"%Temp%\explorer.exe" PINT %1,TaskBand
if exist "%Temp%\explorer.exe" del /q "%Temp%\explorer.exe"
goto :eof
:hotkstart
start PECMD.EXE HOTK %~2,%1
goto :eof
:execstart
if "%~x1"==".reg" (
start regedit.exe /s %1
) else if "%~x1"==".inf" (
start PECMD.EXE DEVI %1
) else if "%~x1"==".ini" (
start PECMD.EXE LOAD %1
) else (
start PECMD.EXE EXEC !%1 %~2
)
goto :eof
|
|