FZ_FormBase.Execute
Starts up a process
Public Shared Function Execute( _
ByVal exeName As String, _
ByVal argument As String _
) As Integer
Parameters
exeName
|
Application file name to be executed in the process
The application file name must be specified as an absolute path
|
Input
|
argument
|
Command-line argument to be passed at the time of process startup
|
Input
|
Return Value
Returns 0 when the process startup succeeded.
Otherwise returns a non-zero value.
Description
Starts up a process by specifying a file name and command-line argument.
Example
Private Sub btnOK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOK.Click
' Starts up a process
Execute(GetCoreRAPath()+"abcd.exe", "1")
End Sub