Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-16-2002, 12:27 AM   #1 (permalink)
lynger
Registered User
 
lynger's Avatar
 
Join Date: Aug 2002
Location: philippines
Posts: 11
lynger is on a distinguished road
Send a message via ICQ to lynger
Dos

hi!
Im making a program that would get the average ping from dos and print it to a note pad or word document..
Is this possible?

thank you,
Pls. help!
lynger is offline   Reply With Quote
Old 12-16-2002, 07:28 AM   #2 (permalink)
anon
Guest
 
Posts: n/a
I dont think you can VB is way high level... But you can easily do it in DOS just do

ping so.me.i.p >> filename
  Reply With Quote
Old 12-16-2002, 06:15 PM   #3 (permalink)
lynger
Registered User
 
lynger's Avatar
 
Join Date: Aug 2002
Location: philippines
Posts: 11
lynger is on a distinguished road
Send a message via ICQ to lynger
thank you very much!

for all the support and help.. someone told me that its possible that vb could do this but i cant understand the code they gave me. i think i really need to study and read more..

thank you!
lynger is offline   Reply With Quote
Old 12-17-2002, 01:18 AM   #4 (permalink)
Hrqls
Regular Contributor
 
Join Date: May 2002
Location: Alkmaar, the Netherlands
Posts: 167
Hrqls is on a distinguished road
if anyone wants to have a look at the vb code .. i posted it at http://pub13.ezboard.com/fvisualbasi...cID=4160.topic

i did download from another page not that long ago .. i forgot which page though

it seems to work for me .. but i didnt have time to play with it for real, just saved it for future uses
__________________
The specialty of the house? thats me (cheap as always)
Hrqls is offline   Reply With Quote
Old 12-18-2002, 03:09 AM   #5 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,726
redhead is on a distinguished road
If you wanted to do this in any programming language, you would need to create a pipe going from the caller to the callee, and then another pipe returning the result from the callee to the caller, this requires quite some coding.

In C I would guess it couldn't be done in less than 40 lines of code.. So if you have the option to just use a simple script and take advantage of the pipe directors in the shell, I would chose that.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote
Old 12-19-2002, 07:00 AM   #6 (permalink)
Hrqls
Regular Contributor
 
Join Date: May 2002
Location: Alkmaar, the Netherlands
Posts: 167
Hrqls is on a distinguished road
i found another thread about this :

http://pub13.ezboard.com/fvisualbasi...icID=693.topic
__________________
The specialty of the house? thats me (cheap as always)
Hrqls is offline   Reply With Quote
Old 12-19-2002, 09:15 PM   #7 (permalink)
lynger
Registered User
 
lynger's Avatar
 
Join Date: Aug 2002
Location: philippines
Posts: 11
lynger is on a distinguished road
Send a message via ICQ to lynger
wow

thank you for continuing support hrqls : )

god bless
lynger is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 04:24 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting