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

help creating a batch file

Discussion in 'General Programming Chat' started by captchadreams, Oct 12, 2008.

  1. captchadreams

    captchadreams Power Member

    Joined:
    Sep 19, 2008
    Messages:
    504
    Likes Received:
    131
    I'm new to batch files.. and trying to write one to automate changing my ip. can you help me out? .. here's the source:

    <TR>
    <TD align=CENTER valign=MIDDLE><INPUT TYPE=BUTTON onclick="RebootDevice();" class=button VALUE=" OK "></INPUT></TD>
    <TD align=CENTER valign=MIDDLE><IMG border=0 src="empty.gif" name="empty" width="5" height="28"></TD>
    <TD align=CENTER valign=MIDDLE><INPUT TYPE=BUTTON onclick="window.top.location.href='advanced_menu.htm'" class=button VALUE=" Cancel "></INPUT></TD>
    <TD align=CENTER valign=MIDDLE><IMG border=0 src="empty.gif" name="empty" width="5" height="28"></TD>
    </TR>

    ...here's what I tried:

    @echo off
    wget -q --user=admin --password=password --post-data=submit=OK -O nul http://192.168.1.1/restart.htm

    I have wget in the same folder as the bat file.. the verizon modem/router model number is: 327w

    can anybody help me out? I'd really appreciate it.
     
  2. captchadreams

    captchadreams Power Member

    Joined:
    Sep 19, 2008
    Messages:
    504
    Likes Received:
    131
    can anybody help?

    .....please
     
  3. chc89

    chc89 Junior Member

    Joined:
    Jan 18, 2008
    Messages:
    118
    Likes Received:
    3
    If I am not getting you wrong then you want to renew your ip address then why dont you try ipconfi/renew in your batch file. It may help you.

    Hope it helps