Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB PING Function

Status
Not open for further replies.

Anto318

Technical User
Dec 18, 2006
9
NL
Hi all,

I'm new to VB and I hope you can help me with this VB script. Here is the background of what I need to do. I have created 9 VB scripts that pull information from a database and display these results into a table. That is pretty much all that the VB script is doing. What I am having problem with is error handling. The 9 VB applications are stored on 1 PC in a shared folder, this shared folder is then shared over 8 other PC where a shortcut is placed on each desktop.

The error that I need to handle is if the 1 PC with all the VB scripts crashes a message should display on the 8 other PCs where the scripts are running to highlight that there is a problem with the main PC. The error handling that I am trying to use at the minute is the PING FUNCTION, in each script a ping function will ping the IP address of the main PC and if the ping fails an error message will display. I have tested this on the network where the VB scripts are running and when I shut down the main PC no error will appear on each of the other PCs.

The strange thing is I tested this on another network, again shut down the PC with the shared folder and the error message appears on each of the other PCs. Is there a better way to catch this error, any advice would be greatly appreciated as I can't figure out why it is working across one network and not another.

Thanks,
AM
 
What are you using for your Ping Function (code wise)? Are you using WinXP or better?

--------------------------------------------------------------------------------
dm4ever
My philosophy: K.I.S.S - Keep It Simple Stupid
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top