EXEC =!X:\PotPlayer\setup.cmd
LINK !%DESKTOP%\PotPlayer,X:\PotPlayer\PotPlayerMini.exe
EXEC =!Y:\PotPlayer\setup.cmd
LINK !%DESKTOP%\PotPlayer,Y:\PotPlayer\PotPlayerMini.exe
LINK !%DESKTOP%\8Avidemux影片剪辑(XP不相容),X:\Avidemux\Avidemux.exe
LINK !%DESKTOP%\8Avidemux影片剪辑(XP不相容),Y:\Avidemux\Avidemux.exe
...
...
LINK !%DESKTOP%\8碎片文件整理,Y:\Addon\WinContig\WinContig.exe
LINK !%DESKTOP%\8磁碟重组,Y:\Addon\Defraggler\Defraggler.exe
LINK !%DESKTOP%\9磁碟重组,Y:\Addon\SmartDefrag\SmartDefrag.exe
LINK !%DESKTOP%\9驱动备份,Y:\Addon\SmartDriverBackup\SmartDriverBackup.exe
EXEC =!REGEDIT /S "Y:\Addon\NTPClock\NTPClock.REG"
LINK !%DESKTOP%\0网路校时 ,Y:\Addon\NTPClock\NTPClock.exe
EXEC =!REGEDIT /S "Y:\Addon\hclock\HamsinClock.REG" EXEC =!REGEDIT /S "X:\HamsinClock_w.reg" LINK !%DESKTOP%\1时钟 ,Y:\Addon\hclock\HamsinClock.exe
EXEC =!REGEDIT /S "Y:\Addon\ADMon\ADMon.REG"
LINK !%DESKTOP%\2视频广告过滤,Y:\Addon\ADMon\ADMon.exe
LINK !%DESKTOP%\9随身碟病毒免疫器,Y:\Addon\usb_anti_virus\usb_anti_virus.exe EXEC =!Y:\Addon\Recuva\outtool.cmd
LINK !%DESKTOP%\9救回误删档,Y:\Addon\Recuva\Recuva.exe
EXEC !=Y:\Addon\XNVIEW\outtool.CMD
LINK !%DESKTOP%\9XNVIEW看图,Y:\Addon\XNVIEW\XNVIEW.exe
EXEC =!Y:\Addon\WinAmp_LRC\outtool.cmd
LINK !%DESKTOP%\8MP3卡拉OK异空版,Y:\Addon\WinAmp_LRC\WinAmp_LRC.exe
LINK !%DESKTOP%\8MP3Gain音量调整器,Y:\Addon\WinAmp_LRC\MP3Gain音量调整器\MP3Gain_portable.exe
LINK !%DESKTOP%\8自制动态歌词LRC_Editor,Y:\Addon\WinAmp_LRC\自制动态歌词LRC_Editor\自制动态歌词LRC_Editor.exe
LINK !%DESKTOP%\8Mp3Profile清单产生器,Y:\Addon\WinAmp_LRC\Mp3Profile清单产生器\Mp3Profile.exe LINK !%DESKTOP%\8音乐转档精灵,Y:\Addon\MediaEncoder\MediaConvert.exe
LINK !%DESKTOP%\8WAV音档剪辑,Y:\Addon\CTWAVE\CTWAVE32.EXE
LINK !%DESKTOP%\9WinSCP(Ftp工具),Y:\Addon\WinSCP\WinSCP.exe
// LINK !%Desktop%\进桌面后请执行一次,X:\Addon_10PE_2nd.CMD
LOAD Y:\Addon_10PE.ini
______________________________________________________________________________________
四.编辑 Addon_10PE_1st.CMD :
echo off
set z7=X:\7z.exe
for %%i in ( C D E F G H I J K L M N O P Q R S T U V W ) do if exist %%i:\seltool set sel=%%i:\seltool
copy /Y %sel%\Addon_10PE_1st.BAT X:\Addon_10PE_1st.BAT >nul 2>nul
if exist X:\Addon_10PE_1st.BAT X:\Addon_10PE_1st.BAT %1
六.编辑 seltool\Addon_10PE_1st.BAT :
REM 在 Addon_10PE_1st.BAT 可依第一个参数是否为 YES 来决定要载入那些 "另外添加" 的工具: set Myt=Y:\
REM 7z.EXE 及 7z.DLL 须并存, 若资料夹含空格则set z7 后的双引号不可省
set z7="X:\7z.exe"
if not exist Y:\Addon md Y:\Addon
for %%i in ( C D E F G H I J K L M N O P Q R S T U V W ) do if exist %%i:\seltool set sel=%%i:\seltool REM 为加快启动速度, 在10PE 有些工具不添加
if not "%1"=="YES" set unused=_
REM if not "%1"=="YES" goto skip1
if exist X:\Windows\Fonts\Fonts goto skip1
REM 微软正黑体 Windows\Fonts\msjh.ttc 改压成 selboot\Fonts.msjh.ttc微软正黑体.7z
REM 标楷体:从XP或 PE_tools(简繁PE通用工具包).7z 找来kaiu.ttf压成 selboot\Fonts.kaiu.ttf标楷体.7z
md X:\Windows\Fonts\Fonts 2>nul >nul
copy /Y %sel%\Fonts.*.7z X:\Windows\Fonts\Fonts 2>nul >nul
if exist "X:\Windows\Fonts\Fonts\*.7z" for %%f in (X:\Windows\Fonts\Fonts\*.7z) do %z7% x "%%f" -r -y -aos -oX:\Windows\Fonts\Fonts
if exist X:\Windows\Fonts\Fonts\*.7z PECMD.EXE FONT X:\Windows\Fonts\Fonts
del /Q X:\Windows\Fonts\Fonts\*.7z 2>nul
:skip1
set sys=system32
if exist %windir%\sysWOW64 set sys=sysWOW64
REM dbgcore.dll (百度云管家会用到) ; avifil32.dll, zh-TW\avifil32.dll.mui (360云会用到) - 取自 PE_tools(简繁PE通用工具包).7z
for %%f in (dbgcore.dll) do if not exist %windir%\%sys%\%%f copy %sel%\10PE\sys\%%f %windir%\%sys%\%%f 2>nul >nul
set os=x86
if exist X:\Windows\SysWOW64 set os=x64
if not exist Y:\Addon_10PE.ini copy %sel%\Addon_10PE_%os%.ini Y:\Addon_10PE.ini 2>nul >nul
...
...
...
REM Firefox 的寻档顺序为 ?:\seltool\Firefox(64)*.7z , ?:\seltool\Firefox(免安装*,32位元*,简繁*通用).rar , ?:\outtool\wimmod\Firefox.WIM REM Chrome 的寻档顺序为 ?:\seltool\Google(64)Chrome*.* , ?:\seltool\Google(32)Chrome*.* set Fx_XY=Y
if "%1"=="YES" set Fx_XY=X
if exist X:\Windows\SysWOW64 if not exist %Fx_XY%:\Firefox for %%f in (%sel%\Firefox?64?*.7z) do %z7% x "%%f" -y -aos -o%Fx_XY%:\ 2>nul
for /d %%f in (%Fx_XY%:\Firefox*) do move "%%f" %Fx_XY%:\Firefox >nul 2>nul
if not exist %Fx_XY%:\Firefox for %%f in (%sel%\Firefox*.rar) do %z7% x "%%f" -y -aos -o%Fx_XY%:\ 2>nul
...
... REM 工具 *.7z 可存到 seltool\ 之下
FOR %%d IN (
Addon\PartAssist%unused%
Addon\XNVIEW
) DO for /f "tokens=1,2 delims=\" %%i in ("%%d") do if not exist %Myt%\%%d for %%f in (%sel%\%%j*.7z) do %z7% x "%%f" -y -aos -o%Myt%\%%i
REM 资料夹改名为不含中文 FOR %%d IN (
Addon\PartAssist Addon\XNVIEW ) DO for /f "tokens=1,2 delims=\" %%i in ("%%d") do for /d %%f in (%Myt%\%%d*) do move "%%f" %Myt%\%%d >nul 2>nul
REM PotPlayer
set PP_XY=Y
if "%1"=="YES" set PP_XY=X
if not exist %PP_XY%:\PotPlayer for %%f in (%sel%\PotPlayer*.7z) do %z7% x "%%f" -y -aos -o%PP_XY%:\ 2>nul
for /d %%f in (%PP_XY%:\PotPlayer*) do move "%%f" %PP_XY%:\PotPlayer >nul 2>nul
set Fx=?
for %%i in ( C D E F G H I J K L M N O P Q R S T U V W ) do if exist %%i:\outtool\wimmod set Fx=%%i:\outtool\wimmod
if "%Fx%"=="?" goto skip
REM 10PE与NoName XPE共用下列工具 , 当选择不载入外置工具( 参数1为 YES )则 %unused% 的值为 _ , 表示不载入某些另外添加的工具.
if not exist %Fx_XY%:\Firefox for %%f in (%Fx%\Firefox.WIM) do %z7% x "%%f" -y -aos -o%Fx_XY%:\Firefox 2>nul
if not exist %PP_XY%:\PotPlayer for %%f in (%Fx%\PotPlayer1.6.WIM) do %z7% x "%%f" -y -aos -o%PP_XY%:\PotPlayer 2>nul
FOR %%d IN (
Addon\64bit-Checker
Addon\ADMon
Addon\CTWAVE%unused%
Addon\Defraggler
Addon\FreeUPX%unused%
Addon\hclock
Addon\HE6
Addon\Inp_Pen
Addon\Input Addon\MediaEncoder%unused% Addon\NTPClock
Addon\PDFX Addon\Recuva Addon\SmartDriverBackup%unused%
Addon\TTPlayer4%unused% Addon\TTPlayer7%unused% Addon\UltraISO
Addon\UNLOCKER
Addon\usb_anti_virus
Addon\VeraCrypt
Addon\WinContig
Addon\Wimtool
Addon\WinAmp_LRC
Addon\WinSCP%unused%
Addon\WinRAR
Addon\WordReader
Addon\yong_ ) DO for /f "tokens=1,2 delims=\" %%i in ("%%d") do if not exist %Myt%\%%d for %%f in (%Fx%\%%j*.WIM) do %z7% x "%%f" -y -aos -o%Myt%\%%d
:skip
...
...
REM PotPlayer 可改设定为 "单个即选即播" & (按[Ctrl+F])设定硬体加速
copy /y %sel%\PotPlayerMini_w.ini %PP_XY%:\PotPlayer\PotPlayerMini.ini 2>nul >nul
REM copy /y %sel%\PotPlayerMini64_w.ini %PP_XY%:\PotPlayer\PotPlayerMini64.ini 2>nul >nul
REM 时钟执行后在数字钟上按右键选[New Event], 便可设定 "(once某日/daily每日)定时提醒",
REM 设好后请将 [HKEY_CURRENT_USER\Software\Hamsin] 汇出至 seltool\HamsinClock_w.reg
if exist %sel%\HamsinClock_w.reg copy /y %sel%\HamsinClock_w.reg X:\HamsinClock_w.reg 2>nul >nul
六.编辑 seltool\Addon_10PE_1st.BAT :
REM 在 Addon_10PE_1st.BAT 可依第一个参数是否为 YES 来决定要载入那些 "另外添加" 的工具: set Myt=Y:\
REM 7z.EXE 及 7z.DLL 须并存, 若资料夹含空格则set z7 后的双引号不可省
set z7="X:\7z.exe"
if not exist Y:\Addon md Y:\Addon