MSFN Forum: Unattended Batch Scripts - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unattended Batch Scripts Rate Topic: -----

#1 User is offline   rathcoffey 

  • Group: Members
  • Posts: 8
  • Joined: 03-February 05

  Posted 21 February 2005 - 02:03 PM

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


#2 User is offline   GreenMachine 

  • ineXPlicable
  • Group: Developers
  • Posts: 3,062
  • Joined: 22-August 03

Posted 21 February 2005 - 02:30 PM

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy