Here's a quick and very dirty vbs script to do it:
***************
CreateObject("WScript.Shell").run "%comspec% /c ipconfig > file.tmp", 0, True
with CreateObject("Scripting.FileSystemObject").GetFile("file.tmp").Openastextstream
Do While NOT .AtEndOfStream
dim x : x = .ReadLine
dim y
If InStr(x, "Address") <> 0 Then y = Mid(x, InStr(x, ":") + 2)
Loop
.Close
End With
CreateObject("WScript.Shell").run "del file.tmp", 0, True
if y = "insert the ip you're look for here" then
'first command here
'maybe: CreateObject("WScript.Shell").run "mybatchfile.bat", 0, True
else
'second command here
'CreateObject("WScript.Shell").run "myotherbatchfile.bat", 0, True
end if
*******************
Has no error checking, nor does it check for OS. Should work fine on 2000 or XP though.
________
Remember, you're unique... just like everyone else.