PING! 
Author Message
 PING!

-- I'm currently trying to validate a server address via VB4-16bit.
I'm shelling out a DOS .bat file containing the following:
"ping serverid > S:\VBDEVE~1\INTERF~2\!ping!.res"
I have the usual 'round the houses' code to check when the task has
completed, this works and I can then read the 'piped' file to dicover
nuggets of information such as
"Bad IP address server."
No problem so far.
Trouble is, after about 8 test runs of the program I happened to change
application via ALT+TAB and discovered lots of DOS windows still happily
sitting there, cluttering up the computer.
Anyone know how to shell a DOS program and GUARANTEE to close the window on
completion?  Under WIN95 and NT ?
NB I do not want to be checking boxes on shortcuts etc to close on exit,
not unless I can do it via code as this will run on an unattended system
and nobody will be there to click the mouse.
Alternatively, how do I PING a server name via VB?

remove NOSPAM to reply via email
regards,
Roger



Tue, 26 Oct 1999 03:00:00 GMT  
 PING!

In the batch file make EXIT the last line of the batch file... But move on
you need a TCPIP socket control for your VB Application.  See this site.

http://www.catalyst.com/


...

Quote:

>-- I'm currently trying to validate a server address via VB4-16bit.
>I'm shelling out a DOS .bat file containing the following:
>"ping serverid > S:\VBDEVE~1\INTERF~2\!ping!.res"
>I have the usual 'round the houses' code to check when the task has
>completed, this works and I can then read the 'piped' file to dicover
>nuggets of information such as
>"Bad IP address server."
>No problem so far.
>Trouble is, after about 8 test runs of the program I happened to change
>application via ALT+TAB and discovered lots of DOS windows still happily
>sitting there, cluttering up the computer.
>Anyone know how to shell a DOS program and GUARANTEE to close the window
on
>completion?  Under WIN95 and NT ?
>NB I do not want to be checking boxes on shortcuts etc to close on exit,
>not unless I can do it via code as this will run on an unattended system
>and nobody will be there to click the mouse.
>Alternatively, how do I PING a server name via VB?

>remove NOSPAM to reply via email
>regards,
>Roger



Wed, 27 Oct 1999 03:00:00 GMT  
 PING!

check out Q129796 in the MSKB.  It will tell you how to
use the WaitForSingleObject function to simulate synchronous
behaviour in Shell.

Quote:
>=========="Roger Saul", 5/9/97==========

>-- I'm currently trying to validate a server address via VB4-16bit.
>I'm shelling out a DOS .bat file containing the following:
>"ping serverid > S:\VBDEVE~1\INTERF~2\!ping!.res"
>I have the usual 'round the houses' code to check when the task has
>completed, this works and I can then read the 'piped' file to dicover
>nuggets of information such as
>"Bad IP address server."
>No problem so far.
>Trouble is, after about 8 test runs of the program I happened to change
>application via ALT+TAB and discovered lots of DOS windows still happily
>sitting there, cluttering up the computer.
>Anyone know how to shell a DOS program and GUARANTEE to close
>the window on
>completion?  Under WIN95 and NT ?
>NB I do not want to be checking boxes on shortcuts etc to close on exit,
>not unless I can do it via code as this will run on an unattended system
>and nobody will be there to click the mouse.
>Alternatively, how do I PING a server name via VB?

>remove NOSPAM to reply via email
>regards,
>Roger

Dave Lamy
"Absolutely."



Fri, 29 Oct 1999 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. PING, Is there an API (or other method) to call ping from VB

2. Ping writing ping component voor asp

3. "PING FROM VB 5" - "PING desde VB 5"

4. "PING FROM VB 5" - "PING desde VB 5"

5. Ping field Value

6. Pinging in VBA code

7. Ping output to text file

8. Ping, anyone?

9. ping in Acces

10. AutoSend Messages for "Ping" Test

11. Multi. Ping screens on my desktop

12. Wish to ping a host when an email arrives

 

 
Powered by phpBB® Forum Software