Calling another application from mine

G

GeezerButler

I need to call a console application from my code.
How can i do that?

Thanks,
Aiman Ashraf
 
M

Mike

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top