Link to home
Start Free TrialLog in
Avatar of brushhead
brushhead

asked on

Accessing a COM .exe from VB .Net

I'm really sorry if this is a dumb question but how do I get at the services on a COM exe from within VB .Net?  I have just started using VB .Net having been using VB6 for ages and ages and I cannot see hwo to do it.  As usual the help is useless.

Goodwill to all,

Rob.
Avatar of iboutchkine
iboutchkine

try this

The System.Diagnostics.Process class provides several methods to launch and controls other Windows
processes. For example, the following code sample shows how to run Notepad, pass arguments to it,
and run it from inside a given intial directory:

' this code assumes that you have used this Imports statement
' Imports System.Diagnostics

Dim proc As New Process()
' Prepare to run Notepad and load C:\Autoexec.bat in it.
proc.StartInfo.FileName = "Notepad.exe"
proc.Start()


ASKER CERTIFIED SOLUTION
Avatar of RacinRan
RacinRan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial