Jump to content

Recommended Posts

Posted

Hi all

I have a query that I hope somone can help with.

Within the WAN I maintain, there are multiple subnets i.e. 192.168.1.X ...... 192.168.2.X

I would like to know is it possible to have the script I use when my unattended WinXp installation is finished to look at what subnet its on and call on a script to install the software from a specific location. i.e. If subnet=192.168.2.X then run InstallA.bat, if subnet=192.168.3.X then run InstallB.bat and so on.

Any ideas or help greatly appreciated.

Thanks

Rathcoffey


Posted

Here is a start to find the machine's IP Address:

ipconfig /all | FINDSTR /C:"IP Address" > IP.TXT

That'll create a text file with the current IP addresses. The rest is fairly mundane Command Script coding: look at the file, see if it has "192.168.1." or "192.168.2", etc., and take action accordingly.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...