Xerox Paris, a document system Support & Software User Guide
Appendix E: Spooler Preprocessing
The Paris Spooler Technical Manual
233
Example of how to run an application as a Preprocess
To run the XES2PS.EXE program as a preprocessing task within the Spooler:
1.
Create a command file containing the required command:
C:\Paris\XES2PS.CMD
C:\xes2ps\xes2ps.exe -f%1 > %2 (The %1 is the input file name that will be
passed into the command file. The %2 is the output file name.)
C:\Paris\XES2PS.CMD
C:\xes2ps\xes2ps.exe -f%1 > %2 (The %1 is the input file name that will be
passed into the command file. The %2 is the output file name.)
2.
Create a new Preprocess definition in the Paris Spooler (refer to page 227)
with the fields set as follows:
with the fields set as follows:
FIELD
CONTENT
Name: Xes2ps
Command: c:\paris\xes2ps.cmd
%f
%p%n.ps
(The %f tells the Spooler to send the full path and filename as
there first parameter at run time. The %p%n.ps tells the Spooler
to send the path and the name, but with the extension changed
to .ps as the second parameter.
there first parameter at run time. The %p%n.ps tells the Spooler
to send the path and the name, but with the extension changed
to .ps as the second parameter.
Directory:
c:\xes2ps
Execution:
Wait Until Process Returns
TimeOut: 0
Result Code:
Ignore
Filename: %p%n.ps
(Given an input name of "C:\Paris\Dta\File1.Xes”, the '%p' tells
the Spooler to send the path "C:\Paris\Dta\", the '%n' sends the
name "file1", and the '.ps' adds an extension ".ps". The output
file would be "C:\Paris\Dta\File1.ps").
the Spooler to send the path "C:\Paris\Dta\", the '%n' sends the
name "file1", and the '.ps' adds an extension ".ps". The output
file would be "C:\Paris\Dta\File1.ps").
Process
Deletes Input
File:
Deletes Input
File:
Not checked
(The Spooler will delete input files)
3.
Create or modify a Job Definition that has this preprocess in the
‘Preprocesses’ list. Make sure the default environment for the selected Job
Definition is set to <NONE>.
‘Preprocesses’ list. Make sure the default environment for the selected Job
Definition is set to <NONE>.