|
_SUB STARTMENU_SETTING
//开始菜单所有程序
LINK %StartMenu%\命令提示符,%Windir%\system32\CMD.EXE
LINK %StartMenu%\图画,%Windir%\System32\mspaint.exe
LINK %StartMenu%\小数字键开关,%Windir%\System32\WinpeSet.exe,/Numk,%windir%\System32\msctf.dll#20
//附件
LINK %StartMenu%\附件\记事本,%Windir%\system32\notepad.exe
LINK %StartMenu%\附件\注册表编辑器,%Windir%\regedit.exe
LINK %StartMenu%\附件\任务管理器,%Windir%\system32\Taskmgr.exe
LINK %StartMenu%\附件\计算器,Windir%\System32\calc.exe
LINK %StartMenu%\附件\计算器,%Windir%\calc.exe
//加载程序
LINK %DeskTop%\搜索PETOOLS程序,%WS%\PETOOLS.CMD,,Shell32.dll#22
LINK %Programs%\附件\搜索PETOOLS程序,%WS%\PETOOLS.CMD,,Shell32.dll#22
//管理工具
LINK %StartMenu%\管理工具\磁盘管理,%Windir%\System32\diskmgmt.msc,,%Windir%\System32\dmdskres.dll#0
LINK %StartMenu%\管理工具\计算机管理,%Windir%\System32\compmgmt.msc,,%Windir%\System32\mycomput.dll#2
LINK %StartMenu%\管理工具\设备管理,%Windir%\System32\devmgmt.msc,,%Windir%\System32\devmgr.dll#4
LINK %StartMenu%\管理工具\服务,%Windir%\System32\services.msc,,%Windir%\System32\filemgmt.dll#0
LINK %Desktop%\WimTool,%ProgramFiles%\WimTool\WimTool.exe
LINK %StartMenu%\附件\截图, %Windir%\system32\SnippingTool.exe
LINK %StartMenu%\附件\Windows图片查看器,"%SystemRoot%\System32\rundll32.exe %ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll, ImageView_Fullscreen %%1"
_END
_SUB OTHER_SETTING
//LINK %StartMenu%\Internet Explorer,%ProgramFiles%\Internet Explorer\iexplore.exe
LINK %Desktop%\宽带连接,%ProgramData%\Microsoft\Network\Connections\Pbk\rasphone.pbk
LINK %Desktop%\网络管理,%ProgramFiles%\PENetwork\PENetwork.exe
LINK %Desktop%\世界之窗浏览器,%ProgramFiles%\TheWorld\Application\TheWorld.exe
LINK %StartMenu%\Windows Media Player,%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe
REGI HKLM\SOFTWARE\Microsoft\Internet Explorer\Main\Start Page=www.baidu.com
REGI HKLM\SOFTWARE\Microsoft\Internet Explorer\Main\Default_Page_URL=www.baidu.com
_END
//设置虚拟内存
_SUB PAGEFILE_SET
BROW Tag,*D:\,请选择一个硬盘分区用来设置虚拟内存,默认选择D:\
FIND $%TAG%=,ENVI DRIVE=D:!FDRV DRIVE=%TAG%
//text 虚拟内存启始位置在:%DRIVE%
PAGE %DRIVE%\Pagefile.sys 1536 2560
_END
//询问是否设置虚拟内存
_SUB ASK
forx \pagefile.sys,pagefile,0,file %pagefile% `清理掉上次启动 PE 或 Windows 时留下的虚拟内存页面文件
mess 发现可用内存不足,是否设置虚拟内存?\n \n等待5秒钟,默认为 YES @设置虚拟内存 #YN *5000 $Y
FIND $%YESNO%=YES,CALL PAGEFILE_SET
_END
//系统初始化//////////////////////////////////////////////
EXEC %Windir%\System32\WinpeSet.exe /NetMini /Petools /Fast /Vhd
LOGO %WinDir%\web\wallpaper\Windows\img0.jpg
DISP W1024 H768 B32 F60
TEXT 正在初始化系统 ...#0xFFFFFF L430 T20 $20
EXEC !%SystemRoot%\system32\winpeshl.exe
EXEC %Windir%\System32\CTFMON.EXE
SHEL %SystemRoot%\explorer.exe
DISK ,,,1,U
SHOW -check -1:-1
//设置虚拟内存,如果内存总量大于1024M就不设置虚拟内存
FIND MEM<1025,CALL ASK
//设置桌面和开始菜单
CALL STARTMENU_SETTING
LINK %UserProfile%\AppData\Roaming\Microsoft\Windows\SendTo\记事本,%Windir%\system32\notepad.exe
IFEX %Windir%\system32\netcfg.exe,CALL OTHER_SETTING
//开启小数字键
NUMK 1
INIT I
TEXT
IFEX %ProgramFiles%\7-Zip\Setup.cmd,EXEC *%ProgramFiles%\7-Zip\Setup.cmd
WAIT 200
EXEC =!%windir%\system32\bootpart.exe -mount -readonly -driveletter T: ;将优盘隐藏区显示并只读挂载到T盘
WAIT 500
RAMD ImDisk,L1024,NTFS,T:,ImDisk ;使用ImDisk虚拟光驱建立卷标为ImDisk的1024兆T盘
WAIT 500
FORX !\MINIPE\Win8x64.ini,MyIni,1,LOAD %MyIni% ;使用pecmd.ini加载镜像根目录MINIPE下的Win8x64.ini
//隐藏自带网络图标
EXEC !=%SystemRoot%\regedit.exe /S %SystemRoot%\System32\隐藏自带网络图标.reg
//WiFi连接
exec !"%ProgramFiles%\WiFi\WiFi.bat"
pecmd kill explorer.exe
-----------------------------------------------------------
pecmd.ini
注意,内核需要集成Imdisk或者Primo,确保能够建立虚拟盘,否则外置无法挂载 |
|