也可根剧配置文件来改,如果不要,直接给$ie付值就行了
config.ini配置如下
[ieset]
ie="http://192.168.0.136"
Dim $ie[3]
$ie[0] = IniRead($config.ini, "ieset", "ie", "http://192.168.0.136");读取配置IE
$ie[1] = "HKEY_CURRENT_USER\Software\Microsoft\";改IE
$ie[2] = "HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}\shell\";修改IE启动项
$ie[3]="飛翔網絡-将快乐网起来! Tel:2624067 地址:西南科技大学飛翔網絡城";ie标题
$config = "config.ini"
RegWrite ($ie[1] & "Internet Explorer\Main", "Start Page", "REG_SZ", $ie[0]);改IE
RegWrite ($ie[1] & "Internet Explorer\Main", "Default_Page_UR", "REG_SZ", $ie[0]);改IE
RegWrite ($ie[1] & "Internet Explorer\Main", "Window Title", "REG_SZ", $ie[3]);改IE
RegWrite ($ie[2] & "OpenHomePage\Command", "", "REG_SZ", "C:\Program Files\Internet Explorer\iexplore.exe " & $ie[0]);设置IE启动参数
[ 本帖最后由 jycel 于 2009-3-13 19:29 编辑 ] |