|
-
Oct 12th, 2000, 06:49 AM
#1
Thread Starter
Member
i need to run this dos command in a VB application and record the outcome in a Chart the line needs to run until its told to stop, can anyone help please.
"netstat - e > c:\temp.txt"
Thanks
-
Oct 12th, 2000, 09:46 AM
#2
Does it really need to run until you tell it to stop? Or, can you invoke it from code until you get the response you want?
I don't know what netstat -e does, but I do know that you are recreating temp.txt each time it runs. Presumably, you are getting a response that says no action and sooner or later, you get an action response.
If this is the case you could check the filelength of test.txt after each iteration of "netstat -e > text.txt" for any changes.
Hope this helps.
Good Luck
DerFarm
-
Oct 12th, 2000, 09:51 AM
#3
Thread Starter
Member
i can run the command in dos but i dont no how to get a VB application to run DOS then the command
-
Oct 12th, 2000, 09:51 AM
#4
Just my $0.02 :
Using this:
will overwrite Text.txt, whereas
will append to the file 
Enjoy!
-
Oct 12th, 2000, 12:32 PM
#5
maybe you can try it a console program..
there is a tutorial on this sight:
http://www.vb-world.net/articles/console/index.html
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|