In you first example you defined 3 ranges of standard machine names as:
quote:
xxxxxE1 - xxxxxE100 (East Floor)
xxxxxM1 - xxxxxM400 (Main Floor)
xxxxxW1 - xxxxxW200 (West Floor)

You stated that you needed to get three different hosts file to these computers. My substr() above did just that based on the letter. the code would have let you execute the script on your client and update every computer that was turned on.

Anyway, I am glad that you received the feedback you needed to move forward.

[ 30. October 2002, 21:09: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/