I have a little C# executable to be able to print Brother labels. I use a task (type windows command) with parameters to execute it. This works fine if I use a fixed object name for the task.
But now I want to be able to execute the C# executable based on the environment (DTAP). I tried this using an object name atask_name] filled as parameter in the default procedure.
This works if I only fill the path to the C# executable, but the other parameters are ignored (as described in the documentation).
If I also add the values of other parameters to the object name parameter atask_name], I get the message ‘The system cannot find specified file’. If I use the same command string in Windows Command, it works as expected.
How could I achieve this in the SF?
Could the environment automatically be replaced base on an environment variable (%environment%)?
Are there better ways to solve this DTAP issues with external objects?