DIGIT-ARC read-only archive · snapshot: July 23, 2026

Help in making an automized file

3 posts · originally from https://geek.digit.in/community/threads/help-in-making-an-automized-file.47969/

R
rahul_becks23 Original post #1
Jan 31, 2007 at 3:23 AM
Hi guys ,
I wanna make a BAT file that would do this .........

1.> In the TCP/IP Properties of my LAN connection , change my General settings to -
Obtain an IP address automatically and
Obtain DNS server address automatically .

2.> And I also wanna make a BAT file that would -
Restore my previous TCP\IP settings .

If anybody can help me , then plzzzzzz.... help me.

Thanks anyway .
.
Jan 31, 2007 at 6:37 AM
i hope this is what you need.

Code:
@echo off
@color F0
title Refresh IP
ipconfig /all
ipconfig /flushdns
ipconfig /registerdns
ipconfig /setclassid
ipconfig /release
ipconfig /renew

Dunno whether u can rest restore previous TCP/IP settings
R
rahul_becks23 #3
Jan 31, 2007 at 7:13 AM
i'll try that
and how can we change the values using a bat file........ ????
__________
nope , didnt work ...............
anybody got another solution ................