启航-▲每天有个新的开始▲  
公告
日历
统计
  • 随笔 - 94
  • 文章 - 2
  • 评论 - 8
  • 引用 - 2

导航

 

var SiteName="Acmnet"
SetTrustSite(SiteName);
WScript.Echo("You have accept  @#http://acmnet/@#  as  your Trusted Site");


function SetTrustSite(StrSiteName)
{    
var WshShell=WScript.CreateObject("WScript.Shell");
WshShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\"+StrSiteName+"\\http", 2 ,"REG_DWORD");
    TrustedSite_Value=WshShell.RegRead("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ZoneMap\\Domains\\"+StrSiteName+"\\http");
    delete WshShell;
}

posted on 2007-10-11 16:40 bighope 阅读(89) 评论(0) 编辑 收藏
 
Copyright © bighope Powered by: 博客园 模板提供:沪江博客