ExecActionSetValidatedPath Method
Validates the input as a valid filename and optionally checks for its existence. If valid, the
Path property is
set to the validated absolute file path.
Namespace: Microsoft.Win32.TaskSchedulerAssembly: Microsoft.Win32.TaskScheduler (in Microsoft.Win32.TaskScheduler.dll) Version: 2.11.1
public void SetValidatedPath(
string path,
bool checkIfExists = true
)
Parameters
- path String
- The file path to validate.
- checkIfExists Boolean (Optional)
- if set to true check if the file exists.