• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 158
  • Last Modified:

setting a variable to current IP Address

How do I store the machines DHCP address as a system variable

Im using the following command to display the system IP address

ipconfig | find "IP Address"

is there a way to pipe the IP Address to a variable using the SET command

Cheers

0
rshinwell
Asked:
rshinwell
  • 2
2 Solutions
 
grayeCommented:
There is a free Resource Kit tool called SETX, that was designed (oddly enough) to do exactly what you're trying to do.

http://www.microsoft.com/windows2000/techinfo/reskit/tools/existing/setx-o.asp
0
 
PaulADavisCommented:
just curious, why do you want to set the dhcp server address as a variable?

you could try making a lmhost file which would preload the ip address of the dhcp server
0
 
PaulADavisCommented:
Graye and i have tried to help but we were not able to because there was no response from rshinwell.

I say split the points.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now