Developers Guide User Manual

DIRECTOR EasiAPI
DOCUMENT REVISION: 081104
DEVELOPER’S GUIDE
Page 18
StrikeOut# Defaulted to zero. If set to “1” the text ill have a strike-out through it
Weight# Defaulting to 400, you can use the following
numbers to adjust the boldness or weight of the font:
0 Default weight
100 Thin weight
200 Extra-light weight
300 Light weight
400 Normal weight.( Default value)
500 Medium weight
600 Semi-bold weight
700 Bold weight
800 Extra-bold weight
900 Heavy weight
StrikeOut# Defaulted to zero. If set to “1” the text will have a strike-out through it
COMPLETE.BAT
Director can be configured to run a batch file at the end of a job. By simply placing your batch
file named complete.bat in the /Director folder the Director application will execute it at the
end of any given job passing the JOBID and job status as command line arguments. The uses
are myriad, the batch files could be made to send notification via email or Windows messenger
service, run a virus scan, or delete the contents of a folder. Below is just one example of a
batch file that can be processed by Director. It will detail the status of jobs that are completed;
noting the job ID, date and time stamp as well as success/failure reporting.
@echo off
echo JobID=%1 JobStatus=%2 (0=OK, 1=Abort/fail) >> c:\Director\complete.log
@time /t >> c:\Director\complete.log
@date /t >> c:\Director\complete.log
echo ----------------------------- >> c:\Director\complete.log
The output of this file would be a text file called complete.log which captures the outcome of
the last 7 jobs. It will look similar to this:
-----------------------------
JobID=12347 JobStatus=1 (0=Ok, 1=Abort/fail)
10:44a
Thu 05/10/2001
-----------------------------