Link to home
Start Free TrialLog in
Avatar of WRumbled
WRumbled

asked on

goto based on IP Address

Hi all,

I'm trying to create a batch file command that runs from the login script.

We have numerous sites and numerous subnets to go with it. What I want to do is use a goto based on the second segment of the IP, for example:

If the IP address = 10.150.100.10, I need to identify the 150 segment of the address and use that to head to a goto instruction, else end.

It's a command that I only want to run if a user is on a specific site, hence the reason for the split.
ASKER CERTIFIED SOLUTION
Avatar of Farhan Kazi
Farhan Kazi
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of WRumbled
WRumbled

ASKER

Perfect, thank you very much.
That worked perfectly. Thanks.