Yo

Im trying to get Kixscript to look at an Ip address and do a certain commad if it matches so

If IPaddress=192.168.1.0
then do this stuff
else
if ipaddress=192.168.2.0
then do this stuff
else
do this
end

But I cant get the kix syntax correct to look at the ip address,
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Do you think it might be an idea to show us the syntax you are using, so that it can be corrected?
Answered 07/02/2009 by: VBScab
Red Belt

Please log in to comment
0
There are macro variables that let you see the IP of the local computer: @IPADDRESS0, @IPADDRESS1, and @IPADDRESS2. If there is one NIC you'll likely just need to look at @IPADDRESS0. Unfortunately it is returned paded with spaces and with no decimal points. For details and a sample that lets you build a "proper" IP address (with decimals and no spaces) see: http://www.adminscripteditor.com/syntax.asp?act=v&id=315

Bob
Answered 07/02/2009 by: bkelly
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity