+ Post New Thread
Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
Scripts Thread, Changing Proxy Settings for home/work use in Coding and Web Development; dim oShell set oShell = Wscript.CreateObject("Wscript.Shell") if msgbox("Do you want to turn the proxy on? (Yes for School and No ...
  1. #16

    Join Date
    Sep 2010
    Posts
    24
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0
    dim oShell
    set oShell = Wscript.CreateObject("Wscript.Shell")

    if msgbox("Do you want to turn the proxy on? (Yes for School and No for Home)", vbQuestion or vbYesNo) = vbYes then
    oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\In ternet Settings\ProxyEnable", 1, "REG_DWORD"
    oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\In ternet Settings\ProxyServer", "yourproxy and port", "REG_SZ"
    oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\In ternet Settings\ProxyOverride", "yourproxy*.*", "REG_SZ"
    else
    oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\In ternet Settings\ProxyEnable", 0, "REG_DWORD"
    end if

    Set oShell = Nothing

    Hope this helps....

  2. #17


    Join Date
    Feb 2007
    Location
    51.405546, -0.510212
    Posts
    8,754
    Thank Post
    221
    Thanked 2,627 Times in 1,937 Posts
    Rep Power
    779
    Fixed!

    Code:
    dim oShell
    set oShell = Wscript.CreateObject("Wscript.Shell")
    
    if msgbox("Do you want to turn the proxy on? (Yes for School and No for Home)", vbQuestion or vbYesNo) = vbYes then
      oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 1, "REG_DWORD"
      oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyServer", "yourproxy and port", "REG_SZ"
      oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyOverride", "yourproxy*.*", "REG_SZ"
    else
      oShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ProxyEnable", 0, "REG_DWORD"
    end if
    
    Set oShell = Nothing

  3. #18
    TheLibrarian
    Guest
    Slightly off topic; I found this a few days ago, I haven't tried it so I have no idea if it's any good: IconZone.

  4. #19
    pooley's Avatar
    Join Date
    Sep 2005
    Location
    S Wales
    Posts
    1,129
    Thank Post
    77
    Thanked 118 Times in 99 Posts
    Rep Power
    66
    IE for school, use and firefox for home. Simples

  5. #20
    box_l's Avatar
    Join Date
    May 2007
    Location
    Herefordshire
    Posts
    427
    Thank Post
    68
    Thanked 90 Times in 75 Posts
    Rep Power
    61
    This works brilliantly,

    proxyswitch - Proxy Switch is a simple application to switch the system proxy settings in Windows on the fly. - Google Project Hosting.

    It works on the fly, no need to restart the browser at all.

    BoX

SHARE:
+ Post New Thread
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Changing proxy settings
    By s_tu in forum Windows Server 2008
    Replies: 6
    Last Post: 19th March 2011, 12:25 AM
  2. Replies: 22
    Last Post: 2nd March 2011, 02:49 PM
  3. Replies: 0
    Last Post: 22nd November 2010, 10:23 AM
  4. Replies: 3
    Last Post: 21st June 2010, 03:45 PM
  5. Ranger - Change Proxy Settings
    By vlan2 in forum Network and Classroom Management
    Replies: 2
    Last Post: 13th September 2009, 11:05 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •