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
Page 1 of 1
Unattended Batch Scripts
#2
Posted 21 February 2005 - 02:30 PM
Here is a start to find the machine's IP Address:
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.
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.
- ← New Way Of Playing Song
- Unattended Windows 2000/XP/2003
- Installing Hotfixes Using Cmd Format - Is This Ok? →
Share this topic:
Page 1 of 1



Help
Back to top








