Category Archives: Visual Basic

Network Commands in VB.NET

A couple of useful network commands in Visual BASIC .NET (2005). These are the equivalents of doing ping and nslookup from the command prompt. The variable sIPAddress in these examples is a string containing the IP to test, i.e. "127.0.0.1"

Ping
My.Computer.Network.Ping(sIPAddress)
Nslookup
System.Net.Dns.GetHostEntry(sIPAddress).HostName

Scripted silent install of Visual Basic 6.0

I recently had a need to install Visual Basic 6.0 Enterprise Edition on a number of machines using a batch file script and a silent -unattended – installation process. Given the age of the application I thought this would be quite straightforward and well documented, but there were a number of hurdles to clear on the way so here is my solution.

Continue reading