How can I run a .exe program from my own program

How can I run a .exe program from my own program

Post by P Andrew » Fri, 12 Dec 2003 01:27:15


Hi,

I am new to programming, am currently learning visual basic .NET.

Does anybody know how I can run a small .exe from within my own program, for
example I want to write a simple app, where the user has some text boxes and
whatever they type in here, when they press a go button an app runs with the
users input added as a paramenter, so if I was running program.exe and the
user input "full" into the text box the command run would become program.exe
/full

So basically my app just runs another little program with some parameters
after it.

Any help would be welcome,

Thanks,

Peter
 
 
 

How can I run a .exe program from my own program

Post by sole » Fri, 12 Dec 2003 02:13:37

System.Diagnostics.Process.Start("program.exe /" & text1.text)




for
and
the
program.exe

 
 
 

How can I run a .exe program from my own program

Post by hirf-spam- » Fri, 12 Dec 2003 07:36:54

* "P Andrews" < XXXX@XXXXX.COM > scripsit:

\\\
Imports System.Diagnostics
.
.
.
Dim p As New ProcessStartInfo()
p.FileName = "Foo.exe"
p.Arguments = "/foo"
Process.Start(p)
///

--
Herfried K. Wagner [MVP]
< http://www.yqcomputer.com/ ;