Runs the specified application.
object.Run ( Application [,Parameters] [,WaitTime] ) |
- Application
- Required. A String that represents the name of the application to run.
- Parameters
- Optional. A String that represents any command-line arguments to be passed to the application.
- WaitTime
- Optional. A Long that represents the time to wait while the application is running.
Long
The Run method returns -1 if WaitTime was reached; otherwise, it returns the process' exit code as defined by that process. Some programs use the exit code to indicate success or failure.
Application is a string representing the name of the application to run. Specify a filename to run the default application associated with its filetype.
WaitTime is a long representing the amount of time, in milliseconds, to wait while the application is running.
Specify a WaitTime of 0 if you do not want to wait (default).
Specify a WaitTime of -1 if you want to wait until the application is finished running. [Optional].
Application is a string representing the name of the application to run. Specify a filename to run the default application associated with its filetype.
WaitTime is a long representing the amount of time, in milliseconds, to wait while the application is running.
Specify a WaitTime of 0 if you do not want to wait (default).
Specify a WaitTime of -1 if you want to wait until the application is finished running. [Optional].