Previous Topic: Pass Environment Variables in a Windows JobNext Topic: Run the Windows Command Interpreter


Specifying the Command or Script Name Without the Full Path in a Windows Job

When defining a job, the agent usually requires the full path to the command or script name you want to run. However, you can specify the command or script name without the full path if all of the following conditions are met:

Example: Specify a Script Name Without the Full Path

In this example, an agent named WINAGENT runs a script named procscript.bat. The path to procscript.bat is set in the system path on the agent computer and the agent is configured to search for paths to command and script files.

AGENT WINAGENT
CMDNAME procscript.bat