Home Notices Documents Classes Download Others Rice
Classes  >  wfpool  >  StartAsync(string,string)
wfpool class : StartAsync(string,string) method

Description

Executes the specified application.

Syntax

wfpoolInstance.StartAsync(string path, string arg)

Arguments

ClassNameDescription
stringpathA path for the executable file.
stringargArguments passing to the executable file.

Return value

None

Sample code

1:

wfpool wfp;

2:

wfp.StartAsync("C:\Windows\System32\notepad.exe", "C:\Users\yourname\Documents\somewhere\example.txt");

Notes

The path argument need not be the path to the executable file if the argument can evaluate as the executable string.

Examples for the path 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.

The string passed to the arg argument depends on the application. Please refer to the application manual.


Please note that this method does not return a newly opened window.

Links for reference

None

Copyright © Rice All rights reserved.