I am trying to find a way to retrieve the port number for an oracle database. The information is returned via TNSPING from a command terminal, but I can't figure out how to get the information from vb code.

Is it possible to run TNSPINGs from VB and retrieve the information?