1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

VBS or batch script to change setting

Discussion in 'General Discussion' started by jmsnyc, Jan 25, 2006.

  1. jmsnyc

    jmsnyc Network Guru Member

    I wish to create a shortcut to disable/enable wireless settings on my router. I tried a vbs script to automate the keystrokes but for some reason I cannot tab to the password field amd type. Can anyone provide me with a simple script to change this setting on my router?

    I tried this:
    set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "http://192.168.1.1/Wireless_Basic.asp"
    WScript.Sleep 10

    WScript.Sleep 10
    WshShell.SendKeys "{TAB}"
    WScript.Sleep 10
    WshShell.SendKeys "mypassword"

    Once I get to this point, I wish to set the wireless mode to disabled.
     

Share This Page