wfpool class : Start(string) method

Description

Executes the specified application.

Syntax

wfpoolInstance.Start(string path)

Arguments

ClassNameDescription
stringpathA path for the executable file.

Return value

ClassDescription
winframeA window newly opened.

Sample code

1:

wfpool wfp;

2:

winframe winframeIns = wfp.Start("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.


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

None

Copyright © Cooker All rights reserved.