|
#1
|
|||
|
|||
|
Adding results of Dos commands to a file
Does anyone know how you may be able to store the results of a ping command in a text file?
I have been able to run the ping using the followin code: Gateway = Dialog.Input("Enter Default Gateway", "What is the Address of your default gateway:", "", MB_ICONQUESTION); Shell.Execute("ping", "open", Gateway, "", SW_SHOWNORMAL); My problem is being able to add the ping results to a text file. Any clues? |
|
#2
|
|||
|
|||
|
Ping 192.168.1.15>ping.txt you can also specify the path to the ping.txt file. The > will redirect the out put for you, this is an OLD dos method but works in XP.
ping x.x.x.x>text file name Quote:
Last edited by Jason Pate; 10-14-2004 at 10:58 AM. |
|
#3
|
|||
|
|||
|
I actual was able to make this work with this:
Shell.Execute("CMD", "open", "/C Ping "..Gateway..">ping.txt", "", SW_SHOWNORMAL); |
|
#4
|
||||
|
||||
|
This is very interesting to know. Thanks
Adam Kapilik |
|
#5
|
|||
|
|||
|
To append to the file, use >>
|
|
#6
|
||||
|
||||
|
No kidding! I swear some of these tips are worth tatooing on my arm!
Code:
_ _ I / V \ \ \ I | | \ \ I \ / / / I \ / / /
__________________
Yeah right. Who's the only one here who knows the illegal ninja moves from the government? ()))))))))o)))))))============================================== |
|
#7
|
||||
|
||||
|
The ASCII is strong in this one..
|
|
#8
|
|||
|
|||
|
Here's a post on Pinging from AMS too. I wrote a DLL that does it, and Corey took aother angle
http://www.indigorose.com/forums/sho...light=ping+dll |
|
#9
|
||||
|
||||
|
How can you all talk about Ping when Pong has so much potential as well?!
(snort laught)
|
|
#10
|
||||
|
||||
|
true story...
...I almost named my dog traceroute...
__________________
Yeah right. Who's the only one here who knows the illegal ninja moves from the government? ()))))))))o)))))))============================================== |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Audio Tracks Project | Michael | AutoPlay Media Studio 5.0 | 7 | 03-18-2004 11:58 PM |
| HOWTO: Create a Project Template | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-28-2002 02:49 PM |
| HOWTO: "Hide" Externally Referenced Files | Support | AutoPlay Media Studio 4.0 Examples | 0 | 10-23-2002 04:19 PM |
| Can search allow manual browse even if file is found? | RichardShaw | Setup Factory 5.0 | 2 | 08-28-2000 07:08 PM |
| Install only into one of several directories with specific existing file? | RichardShaw | Setup Factory 5.0 | 0 | 08-17-2000 03:29 PM |
All times are GMT -6. The time now is 08:31 AM.








Linear Mode

