LOL yes I know that c:\windows\command.com, and c:\winnt]system32\cmd.exe are the two different ones.
Thanks for pointing that out LLigetfa.
I do have %comspec% in the Kix script, and then pulling the result, to display the information.
Al that works, but here is the main issues I have.
SHELL '%Comspec% /Q /E:1024 /C FOR /F "TOKENS=2* DELIMS= " %%i IN ('+ CHR(39)
+ '"PING -a -n 1 $ipnum | FIND "]""' + CHR(39) + ') DO ECHO %%i >' + $tempfile
Only works in a NT/2K/XP enviorment.
DOS only tells me I have an inavlid switch on a WIN9X platform.
And for the life of me I cannot find that stupid invalid switch.  ![[Mad]](images/icons/mad.gif) 
  
In short I was just trying to ping two IP's
One is google.com, and the other is behind a vpn.
Wanted to know the results of the two so that I can know if the user is logged onto the ISP, and then the VPN.
Using Watlz function this is what I have:
 code:
 ? REVPING("1.1.100.229")
? @error
? REVPING("216.239.51.100")
? @error
? "DONE"
get $
FUNCTION REVPING($ipnum)
		 DIM $nameip, $tempfile
		 $tempfile = "%temp%\nameip.txt"
		 
		 SHELL '%Comspec% /Q /E:1024 /C FOR /F "TOKENS=2* DELIMS= " %%i IN ('+ CHR(39)
		 + '"PING -a -n 1 $ipnum | FIND "]""' + CHR(39) + ') DO ECHO %%i >' + $tempfile
		 
		 IF OPEN(10,$tempfile,2) = 0  $nameip = READLINE(10)  
		 ELSE  $nameip = ""  
		 ENDIF
		 IF CLOSE(10) = 0  
		 DEL $tempfile  
		 ENDIF
		 IF $nameip <> "" $revping = TRIM($nameip) 
		 EXIT (0) 
		 ELSE		 $revping = "UNRESOLVED"		 
		 EXIT (1) 
		 ENDIF
ENDFUNCTION 
It works just right, but only on a NT platform.   ![[Embarrassed]](images/icons/blush.gif) 
  
So Hopefully some OLD SCHOOL people can tell me what the hell is the invalid switch.   ![[Big Grin]](images/icons/grin.gif)