Running Tasks Manually

Overview

Managed tasks normally contain triggers that enable them to start automatically, either on a set schedule, upon the occurrence of an event or when a condition is met. However, situations may arise that require immediate execution of one or more tasks or a user may just prefer to run tasks on demand. In such cases, a managed task can be manually started "on the fly" from Task Administrator.

For those that prefer manually running a task outside of Automate Desktop, they can do so by initially creating a shortcut of the task in a designated location, such as the desktop, start menu or specific folder. To manually start the task, the user can simply click the shortcut associated to it.

Related Topics  

To run tasks manually from the Task Administrator

  1. On the Task Administrator's navigation bar, select Tasks.

  2. Select the task to run, and then select Run on the top panel. You can also right-click tasks, and then select Run.

NOTE: If Remote Administration is utilized, Automate Desktop supports manual execution of tasks that reside on a remote client (or Runtime) from the local Task Administrator, however, there are some limitations. See Managing Remote Tasks for more details.

To run tasks manually from a shortcut

  1. On the Task Administrator's navigation bar, select Tasks.

  2. Right-click the tasks in the main panel, and then select Create Shortcut. Choose one of the default locations listed. To select multiple tasks, hold down CTRL during selection. The image below shows an example of creating shortcuts for multiple tasks.

A new shortcut (.lnk file) linked to the specified tasks is created in the location you chose. Simply click the shortcut to run its associated task.

NOTE: Only local tasks can be run from a shortcut.

NOTE: If multiple tasks run concurrently, each task will run according to how its Priority properties are set. For example, assume a task's priority is set to Run Alone and Hold Task Indefinitely. In this case, 'Task 1' will only run if there are no other tasks running. If other tasks are currently running, 'Task A' will be held indefinitely in a waiting tasks queue until those tasks have completed, at which point, 'Task 1.'

To run tasks manually from the command-line

Tasks can be started manually by way of the command-line or a batch file. Whenever a user starts a task manually outside of Automate Desktop, the executable files AMTask.exe or AMTaskCm.exe (collectively, AMTask) are utilized. These files can be found in the following location (assuming Automate Desktop was installed in the default location):

  • AMTask - C:\Program Files\Automate Desktop 2024\AMTask.exe
  • AMTaskCM - C:\Program Files\Automate Desktop 2024\AMTaskcm.exe

In order to properly use AMTask or AMTaskCm, you must enter the default installation path and file name of AMTask.exe or AMTaskCm.exe enclosed in parenthesis, followed by a space, then the path and file name of the .AML file associated with the task, also enclosed in parenthesis:

"C:\Program Files\Automate Desktop 2024\AMTask.exe" "C:\ProgramData\Automate Desktop 2024\Tasks\My_Report.aml"

Both AMTask and AMTaskCM operate identically with one exception. AMTask is a pure Windows application designed to run a task from within a Windows environment, whereas AMTaskCm.exe is a console application designed run a task from a command prompt or batch file.

To learn more about running tasks from a command prompt along with the appropriate command line parameters to use, see Command-line Operation.