help creating a batch file

captchadreams

Power Member
Joined
Sep 19, 2008
Messages
509
Reaction score
133
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.
 
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
 
Back
Top