The automatic schedule run command is the same as selecting the Manufacturing | Scheduler manually from the DMS menu. In order to run a schedule automatically, the user name provided for the login must have access to both the “Enable Auto User Login” and the “Scheduler”. The parameter for the automatic schedule run is:
AutoScheduleRun=command file
For example, to login to the database DMSData with a user name of John Doe to run a schedule using the command file C:\Program Files\Dynafact\SchdCmd.TXT the following would be used:
"C:\Dynafact\Production\DMS\DMSEnt.exe" "UserIniFolder=C:\Dynafact\Production\DMS\User\" "AutoUserName=John Doe" "DatabaseName=DMSData" "AutoScheduleRun=C:\Program Files\Dynafact\SchdCmd.TXT"
The “command file” is an existing text file that holds the schedule command information required by the DMS scheduler. Unlike the parameters passed for an automatic schedule run, the command file parameters should never to be surrounded in quotation marks even if the parameter has a space in it. The following commands are given in the schedule command file:
The following is an example of a schedule command file that will run a finite schedule using the current date plus one day, starting on shift 1:
Command=Finite
StartDate=Today+1
StartShift=1
The following example is a schedule command file that will run a try profile schedule as of the current day, shift 1, where the first profile to try will be “Overtime” and the second profile to try will be “Overtime Weekends”. All jobs that are late and have a priority less then or equal to 10 will use the try profile logic:
Command=TryProfile
StartDate=Today
StartShift=1
ProfilePriorityForLateJobs=10
FirstTryProfile=Overtime
SecondTryProfile=Overtime Weekends
Also see: Automatic Execution Commands