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.
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’ )