To run an external program use the RunProgram() function.

The external program will run and any return value is returned to Fusion.

This is useful in many scenarios including:

  • Custom logic in FileTransport components for FileByFile processing.
  • Pre/Post-Job PowerShell or C# scripts.

Example 1
This example will run the installed demo program MyProgram.exe (from the sample VS project) and retrieve the returned value using the dynamically generated Registry Key.

If the program has not completed in 30 seconds or terminates unexpected an error will be generated.

RunProgram( [<< FolderProgram >>] + ‘\MyProgram.exe’ , ‘My arguments’ , ‘30’ , ‘Normal’ , ‘true’ )

Feedback

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.

Post your comment on this topic.

Post Comment