|
楼主 |
发表于 2013-1-20 20:11:28
|
显示全部楼层
回复 2# 虫子樱桃
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#PRE_Icon=iMac On.ico
#PRE_Res_Comment=清理优化WIN7 XP程序
#PRE_Res_Description=yinbinly
#PRE_Res_Fileversion=1.0.1.2
#PRE_Res_Fileversion_AutoIncrement=p
#PRE_Res_LegalCopyright=鼎盛商贸 Corporation 2008-2012
#PRE_Res_requestedExecutionLevel=None
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
Opt("MustDeclareVars", 1)
Opt("TrayAutoPause",0)
If @OSVersion = "WIN_XP" Then
MsgBox(64, "提示", "XP系统无法修改开机画面!", 2)
Exit
EndIf
Traytip(" 温馨提示","正在检测机器型号" & @CRLF & "以确定电脑品牌,请勿动键盘鼠标",15,4)
Sleep(1200)
Global $info,$strComputer,$objWMIService,$xh,$colChassis,$computerModel,$computerModel2
$strComputer = "."
$objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\" & $strComputer & "\root\cimv2")
$xh = ''
$colChassis = $objWMIService.ExecQuery ("Select * from Win32_SystemEnclosure")
$computerModel = $objWMIService.ExecQuery("Select * from Win32_ComputerSystemProduct")
For $objItem in $computerModel
$computerModel2 = $objItem.vendor & $objItem.name & "(" & $objItem.IdentifyingNumber & ")"
Next
$info&=""&$computerModel2
;MsgBox(0,'','型号!'&$info)
Select
Case StringInStr($info, 'lenovo')
TrayTip("检测完成!", "这是联想", 5, 1)
If @OSVersion = "WIN_7" Then
FileCopy(@ScriptDir & "\File\lenovo.jpg", @WindowsDir & "\System32\oobe\info\Backgrounds\backgroundDefault.jpg", 9)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background", "OEMBackground", "REG_DWORD", "1")
EndIf
Case StringInStr($info, 'dell')
TrayTip("检测完成!", "这是戴尔", 5, 1)
If @OSVersion = "WIN_7" Then
FileCopy(@ScriptDir & "\File\dell.jpg",@SystemDir & "\oobe\info\Backgrounds\backgroundDefault.jpg",9)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background", "OEMBackground", "REG_DWORD", "1")
EndIf
Case StringInStr($info, 'asus')
TrayTip("检测完成!", "这是华硕", 5, 1)
If @OSVersion = "WIN_7" Then
FileCopy(@ScriptDir & "\File\asus.jpg",@SystemDir & "\oobe\info\Backgrounds\backgroundDefault.jpg",9)
RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background", "OEMBackground", "REG_DWORD", "1")
EndIf
Case Else
MsgBox(0, '提示:', '未知品牌',1)
EndSelect
Sleep(1800)
加上下面的代码又报错!难道冲突? |
|