The startup command line may contain optional parameters in addition to the name of the executable program file.
Eg. dLabel2k.exe c:\data\addresslist.dlt
The first parameter can be used to specify the name of a template file loaded automatically when the program starts. This should be the fully qualified pathname of the required file. If no filename is specified then the program will attempt to load a file name default.dlt from the startup directory. If default.dlt is not found the program starts with a blank template.
Additional options are available if the first parameter after the executable filename is /pt
Eg. dLabel2k.exe /pt c:\data\addresslist.dlt \P
As before the next parameter (now the second) is the name of a template file loaded automatically when the program starts. Two additional options are now available to specify what happens when the template is loaded.
Auto-printing: The third parameter may be \P – which causes the program to immediately print all the records from the database associated with the specified template and then to terminate. This parameter is designed to allow the program to be used without user intervention to print a predetermined group of labels/records, or to receive a text file from another source and print labels/records from the content of the file.
Waiting: An alternative startup parameter is \Wxx (where xx is the time in seconds that dIndex waits before attempting to load and print the template file, eg.
c:\dlabel\dlabel2k.exe /pt c:\dlabel\test.dlt \W60
This approach is most valuable when waiting for the creation of a database file that is to be “Used” as the data source. For an example see How to Start dLabel Automatically.
The command line may be used in a shortcut or batch file run, either of which can be run directly or using the Scheduled Tasks facility of Windows.
Note that any pathnames that contain spaces need to be enclosed in quotation marks.
More: