|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Calling another application from mineI need to call a console application from my code.
How can i do that? Thanks, Aiman Ashraf Process.Start
Show quote "GeezerButler" <kurtr***@gmail.com> wrote in message news:1170842990.719593.106170@p10g2000cwp.googlegroups.com... >I need to call a console application from my code. > How can i do that? > > Thanks, > Aiman Ashraf > On Feb 7, 2:09 am, "GeezerButler" <kurtr***@gmail.com> wrote: Public Function Shell( _> I need to call a console application from my code. > How can i do that? > > Thanks, > Aiman Ashraf ByVal PathName As String, _ Optional ByVal Style As AppWinStyle = AppWinStyle.MinimizedFocus, _ Optional ByVal Wait As Boolean = False, _ Optional ByVal Timeout As Integer = -1 _ ) As Integer Dim ProcID As Integer ' Start the Calculator application, and store the process id. ProcID = Shell("CALC.EXE", AppWinStyle.NormalFocus) Code is in VB.net but if you need C#, should be easy to translate. |
|||||||||||||||||||||||