FoxPro Programming
Re: Foxbase .BIN file to ping an IP?
10/05/2008
04:06:28 PM
2HB0YDKLU Show this entire thread in new window
From:
Doug Dodge
To:
Bob
Attachments:
None
Bob,

In VPF I'd do the following;

lcIP = [the DNS entry or IP address - e.g. 'www . yahoo . com'] (minus spaces *g*)

lcCmd [run ping ] + lcIP + [ > results.txt]
&lcCmd

Then (again in VFP) lcVar = FILETOSTR('results.txt') and you will have some information you can parse.

Remember, DOS has the ability to pipe the output of a command.

You just need to adapt the above to the more limited Foxbase command set.

Best,

DD

I know this is off-topic but I still need to use Foxbase sometimes and thought someone using this forum might have a suggestion for me. I'm looking for a binary code file to LOAD and CALL (from within Foxbase 2.1) that will allow me to get a result similar to the DOS PING command. Was hoping there might be some sort of download library I might be able to tap. Thanks.