call another application from VB.NET

  • Thread starter Thread starter hristo
  • Start date Start date
H

hristo

heya,
is it possible to launch another application (such Excel, IE browser) from VB.NET

in Java, we can use Runtime.getRuntime().exec

thanks
 
heya,
is it possible to launch another application (such Excel, IE browser) from VB.NET

in Java, we can use Runtime.getRuntime().exec

thanks

In VB.NET you can either use the built in Shell command - or if you need
more control over the process you can use the System.Diagnostics.Process
class.
 
EXAMPLE:

dim str as string
str = "C:\WINNT\NOTEPAD.EXE"
x = shell(str, Appwinstyle.maximizedfocus)
 
If your trying to automate Excel or word you can add a
reference of the object to the project. Then declare a
variable of that type. You will then have exposure to all
the properties.

Dim exExcel = new Excel.Application

You will then have access to all the properties.
exExcel.??????
 
* (e-mail address removed) (hristo) scripsit:
is it possible to launch another application (such Excel, IE browser) from VB.NET

You can use 'Shell' or 'System.Diagnostics.Process.Start'.
 
Hi All

Wow, what a race!! And in the lead by a short nose - Tom Shelton first
past the post, with Don Senda (the Italian thoroughbred) a close second.

;-))

Regards,
Fergus
 
Back
Top