Select Page

Category Selected: Uncategorized

1 results Found


People also read

AI Testing

Comprehensive LLM Software Testing Guide

API Testing

The Only API Testing Checklist You Need in 2024

Desktop App Automation

Talk to our Experts

Amazing clients who
trust us


poloatto
ABB
polaris
ooredo
stryker
mobility

Checking Remote Computer Availability

There might be a case where we have to connect to remote
computer. In such case, before connecting to the remote computer, How to confirm remote computer is available or not?

Code

Dim oNetwork

'Creating Visual Basic Network object
Set oNetwork=DotNetFactory.CreateInstance("Microsoft.VisualBasic.Devices.Network"
,"Microsoft.VisualBasic")

'Ping method returns True, if remote computer is available.
If oNetwork.Ping("192.01.01.01") Then
Msgbox "Available"
Else
Msgbox "Not Available"
End If

Set oNetwork=Nothing
  

Synopsis

We can also ping with URL or computer name.