FUNCTION PingTest LOCAL x RUN ping fred >c:\temp\ping.txt x=FILETOSTR("c:\temp\ping.txt") RETURN 'Reply'$x ENDFUNC