You are looking for System.Process.
System.Process.Start - starts a process (i.e., runs an exe). You can pass parameters to the process.
Here's an example:
Dim ProcProperties As New ProcessStartInfo
ProcProperties.FileName = "notepad"
ProcProperties.Arguments = "TextFile.txt"
ProcProperties.WindowStyle = ProcessWindowStyle.Maximized
Dim Proc As Process = Process.Start(ProcProperties)
To make your program pause until the process is complete:
Dim ProcProperties As New ProcessStartInfo
ProcProperties.FileName = "notepad"
ProcProperties.Arguments = "TextFile.txt"
ProcProperties.WindowStyle = ProcessWindowStyle.Maximized
Dim Proc As Process = Process.Start(ProcProperties)
[red]Proc.WaitForExit()[/red]
I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson
Arrrr, mateys! Ye needs ta be preparin' yerselves fer
Talk Like a Pirate Day!