|
谁能这段代码帮我优化一下,此代码可以执行好像执行注册表那段不是很好用,怎么改一下,能判断注册表那段执行完毕。
#NoTrayIcon ;===>不显示托盘图标
sleep (17000)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM eyuscore.exe', '', 0)
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar", "LinksFolderName", "REG_SZ", "链接" )
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar", "Locked", "REG_DWORD", 0x00000000 )
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser", "{01E04581-4EEE-11D0-BFE9-00AA005B4383}", "REG_BINARY", "8145e001ee4ed011bfe900aa005b4383100000000000000001e032f401000000" )
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser", "{0E5CBF21-D15F-11D0-8301-00AA005B4383}", "REG_BINARY", "21bf5c0e5fd1d011830100aa005b438322001c000800000006000000010000000000000000000000000000004c0000000114020000000000c0000000000000468100000010000000dcbac00dd5f8ca01761fd47ca622cc01761fd47ca622cc010000000000000000010000000000000000000000000000005b0114001f50e04fd020ea3a6910a2d808002b30309d19002f433a5c000000000000000000000000000000000000005c00310000000000b53c42581000444f43554d457e310000440003000400efbeb53cfd55b53c42581400000044006f00630075006d0065006e0074007300200061006e0064002000530065007400740069006e0067007300000018004a00310000000000903e771d100041444d494e497e310000320003000400efbeb53c4258903e771d14000000410064006d0069006e006900730074007200610074006f007200000018005600310000000000b53c495811004641564f52497e3100003e0003000400efbeb53c4258b53c4958140028004600610076006f00720069007400650073000000407368656c6c33322e646c6c2c2d31323639330018003000350000000000c43e72571000fe94a56300001c0003000400efbeb53c4458c43e725714000000fe94a56300001400000060000000030000a0580000000000000067616d6530323800000000000000000056cfb9717c37144bb05bac328df94e5ab69ab85b4765df119ca8000c29704bb856cfb9717c37144bb05bac328df94e5ab69ab85b4765df119ca8000c29704bb800000000" )
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar\WebBrowser", "ITBarLayout", "REG_BINARY", "110000005c00000000000000340000001b0000005200000001000000a0060000a00f000005000000620400002600000002000000a1060000a00f000004000000a1000000a00f000003000000a902000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000" )
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\TypedURLs", "url1", "REG_SZ", "http://www5.1616.net/23786/" )
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\URLSearchHooks", "{CFBFAE00-17A6-11D0-99CB-00C04FD64497}", "REG_SZ", "" )
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\URLSearchHooks", "url1", "REG_SZ", "http://www5.1616.net/23786/" )
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\URLSearchHooks", "{CFBFAE00-17A6-11D0-99CB-00C04FD64497}", "REG_SZ", "" )
RegWrite ( "HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\URLSearchHooks", "url1", "REG_SZ", "http://www5.1616.net/23786/" )
RunWait(@ComSpec & ' /c ' & ' regsvr32.exe /s /u "C:\Program Files\E-yoo\ShowIEBand.dll"', '', 0)
RunWait(@ComSpec & ' /c ' & ' regsvr32.exe /s /u "C:\Program Files\E-yoo\ShowIEBand.dll"', '', 0)
RunWait(@ComSpec & ' /c ' & ' regsvr32.exe /s /u "C:\Program Files\E-yoo\EYIEToolBar.dll"', '', 0)
RunWait(@ComSpec & ' /c ' & ' regsvr32.exe /s /u "C:\TEMP\STCTRWatcher.dll"', '', 0)
RunWait(@ComSpec & ' /c ' & ' ren "C:\Program Files\E-yoo\eyuscore.exe" eyuscore1.exe', '', 0)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM pcl3.exe', '', 0)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM pcl9.exe', '', 0)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM pcl6.exe', '', 0)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM pcl5.exe', '', 0)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM pcl4.exe', '', 0)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM pcl7.exe', '', 0)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM pcl8.exe', '', 0)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM pclA.exe', '', 0)
RunWait(@ComSpec & ' /c ' & ' TASKKILL /F /IM pclB.exe', '', 0) |
|