Run job lists from a command line

QuickFill provides the ability to use a "/RUN" or /RUNEND command line option to automatically start QuickFill, open a specific database, and run a job list. For example, you could use the command line:

q:\qfw\qfw demo /run

from a command prompt, batch file, or the 'Run' menu item on the Windows 'Start menu' to go to go to the Q-DRIVE, start QuickFill, open the database named DEMO, and begin running "Tonight's Jobs."

When you use the /RUN option as shown above QuickFill will run the job list named "Tonight's Jobs". You can run other job lists by specifying their name after the /RUN option, as in this example, which will run the job list named "MonthEnd"

q:\qfw\qfw demo /run MonthEnd

If the job list name contains spaces then you must enclose the name in double quotes, as in this example:

q:\qfw\qfw demo /run "Month End Jobs"

Be sure to specify the name of the job list exactly as it is shown in QuickFill. Upper and lower case do not matter but spaces and spelling do.

The "/RUN" command line option will honor  the value set  for "Shut down QuickFill at the end of run" in the job list.  Using the "/RUN" command line option automatically places QuickFill into single user mode.  This means that if you have not checked "Shut down QuickFill at the end of run" QuickFill and the database will be left open and other users will be locked out -- presumably until you have had a chance to examine the output of the updates and reports and have made sure that everything is okay.

The "/RUNEND" command line option will override the value set  for "Shut down QuickFill at the end of run" in the job list.  It will close down QuickFill when the job list has completed.  Like the "/RUN" command line option using "/RUNEND"  automatically places QuickFill into single user mode.  This means that other users will be locked out until the job list has been completed.

No harm is done if you do both, that is set "Shut down QuickFill at the end of run" on the job list and use the /RUNEND command line option.

When either the "/RUN" or /RUNEND" command line option is used on a database for which you have defined user names and permissions, QuickFill creates a fake sign-on in order to open the database and run tonight's jobs. This sign-on is only granted permission to run job lists and print reports. The special sign-on is removed when the job list has finished running and you have closed QuickFill.

When running QuickFill from a batch file, be aware that Windows will continue to execute commands in the batch file after QuickFill has started. Windows will not wait for the job list to finish before continuing on with any remaining commands that appear after the QuickFill command. This means that you cannot run two job lists in succession from a batch file. If you tried to do that, Windows would attempt to start a second instance of QuickFill to run the second job list before the first job list had finished. This would fail since the first instance of QuickFill was in single user mode.