Command line parameters

Heatsoft Automatic Synchronizer allows to perform operations using a command line parameters. So you can perform HAS commands without opening the program window, either with any appropriate program (like "Windows Scheduled Tasks", for instance), through created shortcut to HAS or through "Run" option from Windows "Start" menu.

HAS command line syntax:

HasExecutable "JobName" ["JobSignature"] [switches]

where

HasExecutable - path to the 'has.exe' file, for instance, "c:\Program Files\HAS\HAS.exe"
JobName - name of the job you do want to run
JobSignature - a job signature which is the job creation datetime stamp; optional parameter may be helpful if do rename the job
switches - list of optional parameters which allow to define HAS behaviour

List of switches and corresponding HAS actions is displayed in the following table:

KeyDescription
smHAS will start minimized in system tray.
fcHAS will be closed after a job execution.
fmHAS will be minimized in the system tray after a job execution.
leLog file will be displayed if there are errors only during a job execution.
laLog file will be displayed after every job execution.
exitWait until HAS finishes current job execution and close the program.
terminateTerminates HAS application immediately.


A command line example:
"c:\Program Files\Has\HAS.exe" "Heap scanning" "40477.5453684838" -la -sm

Below are two examples of command line usage:

  • Execute a job through "Run" option from Windows "Start" menu.
  • Create shortcut for a Job for next quick execution.

    Notes:

  • Do not use too long job names (>90 characters)
  • Do not use funny symbols in job names (eastern languages, two or more bytes symbols)

    See also:
       Create a shortcut for Job
       Main window
       Tray icon
       Quick start tutorial