Home News DOC Class DL Others Rice
Class  >  wfpool  >  Start(string)
wfpool class : Start(string) method


Executes the specified application.


wfpoolInstance.Start(string path)


stringpathA path for the executable file.

Return value

winframeA window newly opened.

Sample code


wfpool wfp;


winframe winframeIns = wfp.Start("C:\Windows\System32\notepad.exe");


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.

Although this method attempts to return a newly opened window, it is not always possible to get a window.

If execution of the application does not open a new window, or if it takes time to open a new window, this method exits without waiting to get a new window.

In this case, the uninitialized window is returned.

Links for reference


Copyright © Rice All rights reserved.