G GeezerButler Feb 7, 2007 #1 I need to call a console application from my code. How can i do that? Thanks, Aiman Ashraf
M Mike Feb 7, 2007 #3 I need to call a console application from my code. How can i do that? Thanks, Aiman Ashraf Click to expand... 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.
I need to call a console application from my code. How can i do that? Thanks, Aiman Ashraf Click to expand... 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.