|
糊涂 发表于 2013-7-12 20:23
请教P大,如果不想让0PE“自动挂载”PETOOLS,改为手动执行菜单中的PETOOLS时才挂载菜单,需要怎么处理?
...
_SUB NewTempPath
TEAM ENVI T=B:\TEMP|ENVI EN=HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment|ENVI UCV=HKU\S-1-5-18\Software\Microsoft\Windows\CurrentVersion
PATH %T%
TEAM REGI %EN%\TEMP=%T%|REGI %EN%\TMP=%T%|REGI HKCU\Environment\TEMP=%T%|REGI HKCU\Environment\TMP=%T%
REGI %UCV%\Explorer\User Shell Folders\Cookies=%T%\Cookies
REGI %UCV%\Explorer\User Shell Folders\Cache=%T%\Temporary Internet Files
REGI %UCV%\Internet Settings\5.0\Cache\Content\CacheLimit=#0x0004b000
REGI %UCV%\Internet Settings\Cache\Content\CacheLimit=#0x0004b000
TEAM ENVI T=|ENVI EN=|ENVI UCV=
ENVI
_END
_SUB AUTOR
forx !\PETools\AutoRuns\*.wim,autoWim1,0,EXEC =wimnt.exe %autoWim1%
_END
_SUB UDTOOLS
LINK !%Programs%\UD工具\取UD工具,PECMD.EXE,EXEC !%Windir%\system32\tools\取UD工具.cmd,shell32.dll#46
LINK !%Programs%\UD工具\PETOOLS,PECMD.EXE,EXEC !%Windir%\UDTLink.cmd,shell32.dll#46
LINK %Programs%\UD工具\UD助手,%Windir%\system32\UdHelper.exe
LINK %Programs%\UD工具\fbinsttool,%Curdrv%\petools\磁盘工具\fbinsttool.exe
_END
_SUB UDT
LINK !%Desktop%\取UD工具,PECMD.EXE,EXEC !%Windir%\system32\tools\取UD工具.cmd,shell32.dll#46
_END
FBWF P40 L32 H128
//ENVI $sys.ver=XP
ENVI $sys.ver=2003
ENVI
//2009.10.11精简WINSXS后2003要修补
FIND $%sys.ver%=2003,FILE %windir%\WINSXS\X86_MICROSOFT.WINDOWS.GDIPLUS_6595B64144CCF1DF_1.0.0.0_X-WW_8D353F13\GDIPLUS.DLL=>%windir%\system32\
EXEC %windir%\SYSTEM32\TOOLS\SHOWDRIVE.EXE ALL
IFEX X:\TEMP,!PATH X:\TEMP
ifex mem<32,TEAM MESS 检测到系统可用内存较低,建议设置虚拟内存。@提示#OK *8000|EXEC %WINDIR%\System32\SetPageFile.EXE /a0 /i512 /m512 /t30000
NUMK 0
EXEC =!7za.exe x -o%windir% wxpeelse.7z
IFEX MEM>700,RAMD ImDisk,P38L1H900,fat,B:,ImDIsk !RAMD ImDisk,L1H1,fat,B:,ImDIsk
//指定临时目录
IFEX B:\>200,CALL NewTempPath
TEAM ENVI W=%WinDir%|ENVI WS=%W%\SYSTEM32|ENVI WSD=%WS%\Drivers
TEAM FILE %WS%\WIN32K.SYS|PATH #%WS%\CONFIG
TEAM INIT I|EXEC @PECMD.EXE CALL $SHELL32.DLL,DllInstall,#1,U
//禁止Windows漫游提示
ENVI CV=Software\Microsoft\Windows\CurrentVersion
REGI HKLM\%CV%\ShellServiceObjectDelayLoad\PostBootReminder=
//隐藏我的文档
REGI HKCU\%CV%\Policies\NonEnum\{450D8FBA-AD25-11D0-98A8-0800361B1103}=#1
//提高网速
REGI HKLM\%CV%\Explorer\ControlPanel\NameSpace\{7007ACC7-3202-11D1-AAD2-00805FC1270E}\!
REGI HKLM\%CV%\Explorer\ControlPanel\NameSpace\{D20EA4E1-3957-11d2-A40B-0C5020524153}\!
//根据zxw 2010-4-30建议增加 {begin
//删除控制面板中的网络连接。因为网络组件还未安装时,会显示错误的网络连接图标。
REGI HKLM\%CV%\Explorer\ControlPanel\NameSpace\{7007ACC7-3202-11D1-AAD2-00805FC1270E}\!
//删除控制面板中的管理工具文件夹。因为MMC还未安装时,会显示错误的管理工具图标。
//REGI HKLM\%CV%\Explorer\ControlPanel\NameSpace\{D20EA4E1-3957-11d2-A40B-0C5020524153}\!
//删除控制面板中的任务与计划文件夹。因为精简后无图标。
REGI HKLM\%CV%\Explorer\ControlPanel\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\!
REGI HKLM\%CV%\Explorer\ControlPanel\NameSpace\{D20EA4E1-3957-11d2-A40B-0C5020524152}\!
REGI HKLM\%CV%\Explorer\NetworkNeighborhood\NameSpace\{3c5c43a3-9ce9-4a9b-9699-2ac0cf6cc4bf}\!
REGI HKCR\CLSID\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}\!
REGI HKCR\CLSID\{D20EA4E1-3957-11d2-A40B-0C5020524152}\!
REGI HKCR\CLSID\{3c5c43a3-9ce9-4a9b-9699-2ac0cf6cc4bf}\!
ENVI CV=
//显示我的电脑
LINK %QuickLaunch%\我的电脑,%W%\explorer.exe,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}
REG delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{450D8FBA-AD25-11D0-98A8-0800361B1103} /f
REGI HKCR\lnkfile\IsShortcut
PATH %ALLUSERSPROFILE%\「开始」菜单\程序
FIND Explorer.EXE,!TEAM SHEL EXPLORER.EXE|LOGO|TEXT
wait 2000
`如果不能给 USB 移动存储设备迅速分配盘符或者关机缓慢,请尝试重启 AudioSrv 服务(对于部分 HD 声卡)
TEAM EXEC =PECMD SERV !AudioSrv|wait 125|SERV AudioSrv
`杀掉无用进程并删掉 X: 盘可删除文件以节省空间
TEAM KILL SMSS.EXE|KILL WINLOGON.EXE
FIND Explorer.EXE,!EXEC %comspec% /K "echo.Shell Explorer.exe 启动失败,自动转入CMD命令行。"
IFEX %Windir%\udflag,call UDT
IFEX %Windir%\hpart,exec =bootpart.exe -mount -driveletter U:
forx !\PETools\AutoRuns\启动网络影音.cmd,NSV,1,LINK _%Desktop%\启动网络影音,%NSV%,,shell32.dll#44
//-------------
EXEC =!%Windir%\SYSTEM32\tools\WimReg_A.CMD
IFEX MEM>20,CALL AUTOR !MESS 剩余内存不足20M,忽略拟自动挂载的\n \PETools\AutoRuns\*.wim。 @警告:内存紧张 #OK *3000
EXEC !CMD.EXE /C "%Windir%\ShowMenu.cmd"
LINK !%Programs%\重要声明,CMD.EXE, /C start /max /D%curdir% 重要声明.txt,shell32.dll#23
LINK !%USERPROFILE%\「开始」菜单\程序\网络工具\启动网络(基本),Start_Net.cmd,,SHELL32.DLL#17
LINK !%USERPROFILE%\「开始」菜单\程序\网络工具\启动网络(完整),Start_Net.cmd,all,SHELL32.DLL#17
FILE NetcfgX.dll=>%Windir%\System32\
FILE route.exe=>%Windir%\System32\
FILE SrvSvc.dll=>%Windir%\System32\
LINK _%Programs%\网络工具\就地取材一键上网,PECMD.EXE,EXEC !%Windir%\1KeyNet.cmd,shell32.dll#13
IFEX %Windir%\XPflag,!FILE %Programs%\网络工具\就地取材一键上网.lnk
LINK _%Programs%\网络工具\映射Y盘,PECMD.EXE,EXEC %Windir%\MapY.cmd,shell32.dll#18
IFEX %Windir%\SETTFTPD.CMD,!FILE %Programs%\网络工具\映射Y盘.lnk
LINK !%StartMenu%\显示菜单,PECMD.EXE,EXEC !%Windir%\ShowMenu.cmd,shell32.dll#46
LINK !%StartMenu%\PETOOLS,PECMD.EXE,EXEC !%Windir%\UDTLink.cmd,shell32.dll#46
call UDTOOLS
LINK %Programs%\附件\记事本,NOTEPAD.EXE
LINK %Programs%\附件\命令提示符,%WS%\CMD.EXE
LINK %Programs%\附件\注册表编辑器,REGEDIT.EXE
LINK %Programs%\附件\Windows 资源管理器,EXPLORER.EXE,,EXPLORER.EXE#1
LINK %Programs%\附件\设置页面文件,SetPageFile.EXE
LINK %Programs%\附件\显示所有盘符,%WS%\tools\showdrive.EXE,,shell32.dll#6
TEAM ENVI W=|ENVI WS=|ENVI WSD=|ENVI V0=|ENVI V1=|ENVI
EXEC !CMD.EXE /C "%Windir%\system32\tools\关联REG文件.cmd"
EXEC !CMD.EXE /C "%Windir%\system32\tools\安装右键7za.cmd"
EXEC !CMD.EXE /C "move /y %WINDIR%\*.sy? %WINDIR%\system32\drivers\"
//删除无用文件......
FILE wxpeelse.7z
FORX X:\*.*,ANYFILE,0,FILE %ANYFILE%
IFEX x:\bin,FILE x:\bin
FILE %Windir%\Txtsetup*.*
|
|