wfpool class : StartAsync(string) method
Description
Executes the specified application.
Syntax
wfpoolInstance.StartAsync(string path)
Arguments
Class | Name | Description |
string | path | A path for the executable file. |
Return value
None
Sample code
1: | wfpool wfp; |
2: | wfp.StartAsync("C:\Windows\System32\notepad.exe"); |
Notes
The argument need not be the path to the executable file if the argument can evaluate as the executable string.
Examples for the argument.
If you use a URL like "https://www.google.co.jp/" as an argument, that URL will open in your default browser.
There is a case that the system complements the arguments. For example, specifying "calc" will open the calculator application, but at this time "calc" will be changed by the system to the path to the executable file.
Please note that this method does not return a newly opened window.
Links for reference
None