Solved

setting a variable to current IP Address

Posted on 2004-04-23
4
150 Views
Last Modified: 2010-04-13
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
Comment
Question by:rshinwell
  • 2
4 Comments
 
LVL 41

Assisted Solution

by:graye
graye earned 100 total points
ID: 10903939
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
 
LVL 7

Accepted Solution

by:
PaulADavis earned 100 total points
ID: 10904583
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
 
LVL 7

Expert Comment

by:PaulADavis
ID: 12315177
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
kerberos errors 7 552
Making a spare domain pc 12 326
Question about teaming two NIC's on Server 2012 2 588
OPINIONS please : best Active Directory Monitoring tool 5 159
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
If you are looking at this article, you have most likely been hit by some version of ransomware and are trying to find out if there is anything you can do, or what way you should react - READ ON!
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question