basically what I am trying to do is different based upon what the user is doing... this command is for if the user is hitting a terminal server I need to snag the ip of the workstation hitting the terminal server... so that I can determine where they are ane thus what to do from that point. If the user is hitting this script locally I use

$TSUser="N"
$octetarray=split ("@ipaddress0",".")
$location=val($octetarray[1])

to get the ip but this will not work for me when they are hitting the TS.. I have the command working in bat but I am a baby in kix and just trying to convert.

Thanks

_________________________
Austin Henderson