给段JavaScript的程序:
var WSHShell = WScript.CreateObject("WScript.Shell");
if(WSHShell.RegRead("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable")==1)
{
WSHShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable",0,"REG_DWORD");
WSHShell.Popup("Now the proxy server are disabled!");
}
else
{
WSHShell.RegWrite("HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings\\ProxyEnable",1,"REG_DWORD");
WSHShell.Popup("Now the proxy server are enabled!");
}
把其保存为proxy.js双击。