Okay, I have been given a puzzle to figure out and I need some help getting it solved. These are the details.

* We have two logical networks running in the same domain.
* One network is running on multiple legit network subnets
* The other is running on a private address ( 10.0.X.X) being NATed through a firewall. I have to come up with a way to have the script detect what IP the computer logging in is on.
* If the computer is on the "10 net" then the script needs to abort, if it is not on the "10 net" then the computer will go and install kix, and run the rest of the KIX scripts.

HERE IS THE QUESTION:
How do I get the computer to detect the IP in the batch file, so that it knows whether to proceed or not.

Here is a sample that I wrote and am having problems with. Help with this will be appreciated.

:Factorydetect
%windir%\system32\ipconfig > %temp%\clientip.txt
%systemroot%\ipconfig > %temp%\clientip.txt
find "10.0." %temp%\clientip.txt /c /i
IF not errorlevel 0 GOTO ostype

echo "Welcome to the Factory"
sleep 2
goto end

Chewmanfoo
PS: This bbs rocks and is on the top of my Favorites list!! [Cool]