Home All Groups Group Topic Archive Search About

Calling another application from mine

Author
7 Feb 2007 10:09 AM
GeezerButler
I need to call a console application from my code.
How can i do that?

Thanks,
Aiman Ashraf

Author
7 Feb 2007 10:46 AM
Mubashir Khan
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
>
Author
7 Feb 2007 12:57 PM
Mike
On Feb 7, 2:09 am, "GeezerButler" <kurtr***@gmail.com> wrote:
> I need to call a console application from my code.
> How can i do that?
>
> Thanks,
> Aiman Ashraf

Public Function Shell( _
   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.

AddThis Social Bookmark Button