Tom's Hardware > Forum > General Networking > Network General Discussions > Validating an IP address using a script in windows

Validating an IP address using a script in windows

Forum General Networking : Network General Discussions - Validating an IP address using a script in windows

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

How do I get a windows script to pull the current DHCP IP address and check it against a range? This is my first time trying to do a script like this and I am lost.

the way the script should function is

get "current IP address"

IF "current IP address" is equal to the range "192.168.1.1 to 192.168.1.255"

print "Your IP address is "current IP address" YOUR VPN WILL NOT WORK"

else

print "Your IP address is "current IP address" THE VPN WILL WORK.

And the window that displays the text should stay open until it is closed manually

Thanks In Advance

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > General Networking > Network General Discussions > Validating an IP address using a script in windows
Go to:

There are 1314 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them