The system provides the ability to execute a script on the server before the system runs the command by defining a special environment variable named .source. This allows you to load a set of environment variables from a source file on the server, or execute a custom preparation command.
To try this feature out:
Create a batch file on the system called mybatch.bat that echoes some sentence. Save the batch file to c:\temp.
Create a new environment called "Step Variables."
Add a variable called .source with a value of c:\temp\mybatch.bat.
Edit the Say Hi step of the Hello World project, and set the step's environment to the newly created Step Variables environ.
Run the project, and examine the log output for the step.
The path specified cannot have arguments
On Windows® platforms, the script is invoked via call
On UNIX® platforms, the script must be in the native shell syntax as it is sourced in the running shell