Anything similar to C's "System()" function?

Anything similar to C's "System()" function?

Post by beake » Tue, 27 Sep 2005 04:22:17



Hello,

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")

(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?

Thanks in advance for any advice,

Gary
 
 
 

Anything similar to C's "System()" function?

Post by Herfried K » Tue, 27 Sep 2005 04:41:49

"beaker" < XXXX@XXXXX.COM > schrieb:

Yes.


You may want to check out the 'ProcessStartInfo' class and its 'WindowStyle'
and 'CreateNoWindow' properties. Maybe this solves your problem.

--
M S Herfried K. Wagner
M V P <URL: http://www.yqcomputer.com/ ;
V B <URL: http://www.yqcomputer.com/ ;

 
 
 

Anything similar to C's "System()" function?

Post by beake » Thu, 29 Sep 2005 22:41:41


It did indeed solve my problem!

Thanks for the help.


Gary