Re: Anything similar to C's "System()" function?
- From: beaker <blahblah@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Sep 2005 14:41:41 +0100
Herfried K. Wagner [MVP] wrote:
"beaker" <randomcharacters@xxxxxxxxxxxxxxxxxxx> schrieb:
I'm trying to call a program (and/or batch file) from a command line from within a standalone VB.NET application - something I would have done using the "System()" function if I was working in C.
The only way I've found so far is
System.Diagnostics.Process.Start("blah.exe in out")
Yes.
(I'll be creating 'in' and processing 'out' from within my app).
Is this the best way to do it? Is there a way to suppress the DOS box that briefly flashes up?
You may want to check out the 'ProcessStartInfo' class and its 'WindowStyle' and 'CreateNoWindow' properties. Maybe this solves your problem.
It did indeed solve my problem!
Thanks for the help.
Gary .
- References:
- Anything similar to C's "System()" function?
- From: beaker
- Re: Anything similar to C's "System()" function?
- From: Herfried K. Wagner [MVP]
- Anything similar to C's "System()" function?
- Prev by Date: Re: WMI query for events
- Next by Date: Re: Getting user's domain name
- Previous by thread: Re: Anything similar to C's "System()" function?
- Next by thread: Re: Recove RESX file
- Index(es):
Relevant Pages
|