rathcoffey Posted February 21, 2005 Posted February 21, 2005 Hi allI 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.XI 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.ThanksRathcoffey
GreenMachine Posted February 21, 2005 Posted February 21, 2005 Here is a start to find the machine's IP Address:ipconfig /all | FINDSTR /C:"IP Address" > IP.TXTThat'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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now