SEARCH

The How-To Geek Forums Have Migrated to Discourse

How-To Geek Forums / Windows 7

(Solved) - A batch file for ipconfig

(6 posts)
  • Started 1 year ago by jmeeks49
  • Latest reply from KneeDeep
  • Topic Viewed 2240 times

jmeeks49
jmeeks49
Posts: 631

The problem is my isp Time Warner Cable's connection slows down especially on the wife's computer both her and mine are hard wired connected. She gets upset when it does this to fix it we have to keep rebooting modem. My idea is to make her a batch file using the ipconfig /release and renew commands but i am not sure how to invoke cmd where it would see ipconfig. Something like:

@echo off
ipconfig /release
pause
ipconfig /renew

if there's a better way please hit me up.

thanks,

john

Posted 1 year ago
Top
 
jmeeks49
jmeeks49
Posts: 631

Like the old man said to the old woman "never mind" LOL LOL LOL LOL

it worked

John

Posted 1 year ago
Top
 
jmeeks49
jmeeks49
Posts: 631

ok i was sitting here thinking and my geeky side came out ;-) i want to see how complex of a ipconfig batch file we can get going ie, resetting the winsock cashe ect. i am not good at writing complex bat files the basics i can handle. Any ideas?

John

Posted 1 year ago
Top
 
Xhi
Xhi
Posts: 6298

Each command is independent of the others. So if you can write a single line and if it works, then just add it to the batch file in the order you want it executed. There is nothing magic about a batch file. It is just a series of commands just as you would type them.

Posted 1 year ago
Top
 
jmeeks49
jmeeks49
Posts: 631

thanks Oren..

John

Posted 1 year ago
Top
 
KneeDeep
Posts: 6

Maybe something like this? (This was using XP):

@echo off
c:\windows\system32\ipconfig.exe
ipconfig /release
@pause
ipconfig /renew
@pause

Posted 1 year ago
Top
 



Topic Closed

This topic has been closed to new replies.

Get Free Articles in Your Inbox!

Join 134,000 newsletter readers

Email:

Go check your email!