Run Command Line Program On File
- 11 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Run Command Line Program On File
- Updated on 11 Jan 2023
- 1 Minute to read
- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
Step Details | |
Introduced in Version | 3.0.0 |
Last Modified in Version | --- |
Location | File Management |
The Run Command Line Program on File step utilizes a file as an input and is used to execute a batch file within a Flow, similar to the Run Command step. Though the step requires a file as an input, the step does not require the file to be utilized by any commands within the batch file. The full file path to the batch file will need to be entered into the Command input.
Properties
Inputs
Property | Description | Data Type |
---|---|---|
File | The file which can be passed as a parameter to the command file. | FileData |
Working Directory | The path to the file | List of String |
Outputs
Property | Description | Data Type | |
---|---|---|---|
ErrorCode | |||
Command Error Output | Outputs errors found when executing the command | String | |
Command Output | Outputs the command | String | |
Return Code | Outputs the return code | String |
Setup
Property | Description | Data Type |
---|---|---|
Command | The absolute file path of the command file (C:\Examples\Test.bat) | --- |
ParameterString | Optional setting used to pass parameters to the command file | --- |
UseShellExecute | Determines whether to use the system shell to start the process | Boolean |
LoadFileOnCompletion | Loads the file after completion of the step | Boolean |
Common Errors
Could not find command
A common error when utilizing the step would be having an incomplete file path to the command file. Ensure that the full file path to the command file is complete and includes the file extension
Exception Stack Trace: DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Run Command Line Program On File 1[RunCommandOnFile] in flow [Testing Flow]: could not find command: C:\Examples\Test.ext ---> DecisionsFramework.LoggedException: could not find command: C:\Examples\Test.ext
at DecisionsFramework.Design.Flow.CoreSteps.StandardSteps.AbstractRunFileCommand.Run(StepStartData data)
at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData)
at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData)
--- End of inner exception stack trace ---
Related Information
Forum Posts:
Changing Working Directory On Run Command Step
Was this article helpful?