Man that was fast!! [Smile] I have a newb question. Is this script version dependent? I'm running 4.12. I have stripped out everything from my debug.kix scripts except for this:

$nul=SetOption("WrapAtEOL","On")
$nul=SetOption("Explicit","On")

Function GetCurrentIP()
DIM $IP, $TempFile, $Line, $cf
$TempFile = "%TEMP%\PING.TXT"
If Exist($TempFile)
Del $TempFile
EndIf
SHELL '%COMSPEC% /C PING -n 1 @WKSTA >'+$TempFile
$IP = ""
If Open(1, $TempFile) = 0
$Line = ReadLine(1)
While @ERROR = 0
If InStr($Line,@WKSTA)
$Line = SubStr($Line,InStr($Line,"[")+1)
$GetCurrentIP = Substr($Line,1,InStr($Line,"]")-1)
EndIf
$Line = ReadLine(1)
Loop
$cf = Close(1)
EndIf
If Exist($TempFile)
Del $TempFile
EndIf
EndFunction

? "Login Script Complete"
EXIT

When I run kix in debug mode it shows the Function GetCurrentIP() line and then goes right to ? "Login Script Complete" next. What am I missing?

Thanks