|
ok了.
我以前有两个代码,是以前PECMD的, 主要是设置PE系统临时目录TEMP的,
在你这个版本PECMD下无效了. 其它不需要,只更改设置TEMP
1._SUB Setemp
FDRV PT=%TEMP%
ENVI PT=%PT%\TEMP
PATH %PT%
exec !cmd.exe /c "ECHO file %PT%\*">%windir%\deltemp.ini
REGI HKCU\Environment\TEMP=%PT%
REGI HKCU\Environment\TMP=%PT%
REGI HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\TEMP=%PT%
REGI HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\TMP=%PT%
REGI HKU\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Cookies=%PT%\Cookies
REGI HKU\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Cache=%PT%\Temporary Internet Files
REGI HKU\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Internet Settings\5.0\Cache\Content\CacheLimit=#0x0004b000
REGI HKU\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Cache\Content\CacheLimit=#0x0004b000
ENVI
_END
_SUB deltemp
LOAD %windir%\deltemp.ini
file %temp%\*
file X:\Windows\temp\VMwareDnD\*
file X:\Windows\temp\*
file X:\Users\Default\AppData\Local\Temp\*
find explorer.exe,mess 已经清除完成!@清除TEMP #ok *0
_END
_sub windows1,w210h310,设定窗口,,%windir%\LOADOP.ico,5, `建立手动设置窗口
`根据以上变量设定选框具体状态
item button1,l25t23w150h23,设 置 TEMP 目 录,TEAM temp setting|call Setemp,,0
item button2,l25t53w150h23,清 空 TEMP 目 录,call deltemp,,0
item button2,l25t83w150h23,显 示 隐藏 分 区,SHOW -1:-1,,0
item button2,l25t113w150h23,命 令 控制台 CMD,exec cmd.exe,,0
labe label3,l25t150w150h25,请选择分辨率和色深
list list2,l25t165w150h55,使用默认分辨率|800*600|1024*768|1280*800|1440*900,,使用默认分辨率
radi radiobutton4,l25t186w55h20,默认,,1,2
radi radiobutton5,l80t186w55h20,32位,,0,2
radi radiobutton6,l135t186w55h20,16位,,0,2
item button2,l25t210w150h25,取消+关闭窗口(不要点X),KILL \%Windows1%
item button3,l25t240w150h25,确定+关闭窗口(不要点X),team call loadwim1|wait 500|kill \设定窗口,,0
_end
_sub loadwim1 `进入手动设定模式系统
find $%radiobutton1.check%=1,envi ra1=192m
find $%radiobutton2.check%=1,envi ra1=256m
find $%radiobutton3.check%=1,envi ra1=512m
calc #result = %ra1% * 3
calc #result = %result%/2
find $%list1%=%p1%,page c:\%pf% %ra1% %result%
find $%list1%=%p2%,page d:\%pf% %ra1% %result%
find $%list1%=%p3%,page e:\%pf% %ra1% %result%
find $%list1%=%p4%,page f:\%pf% %ra1% %result%
find $%radiobutton5.check%=1,envi ra2=b32
find $%radiobutton6.check%=1,envi ra2=b16
find $%list2%=使用默认分辨率,disp %ra2%
find $%list2%=800*600,disp w800h600%ra2%
find $%list2%=1024*768,disp w1024h768%ra2%
find $%list2%=1280*800,disp w1280h800b32
find $%list2%=1440*900,disp w1440h900b32
team envi ra1=|envi ra2=
_end
call @windows1
exit |
|