"Fossies" - the Fresh Open Source Software Archive

Member "Demo/Windows/WindowsPrinter.bat" (13 Feb 2009, 1286 Bytes) of package /linux/privat/old/YAFPC-src-23.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) MS DOS Batch source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 rem #######################################################################################
    2 rem Sample batchfile to be given as argument to "redrun.exe" in redirected port properties.
    3 rem #######################################################################################
    4 
    5 rem Edit the following variables to your settings:
    6 
    7 set PROFILE="...Full path to the YAFPC-profile to be used here (*.fpc)..."
    8 set YAFPC="...Full path to where YAFPC is installed...\YAFPC-2x.jar"
    9 set DOMAIN=yourdomain.com
   10 set GHOSTSCRIPT="...Full path to where GhostScript is installed...\bin\gswin32c.exe"
   11 set LOGFILE="...Full path to any filename where log-output should be written to..."
   12 
   13 rem !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   14 rem Change the following lines only if you know what you are doing:
   15 
   16 set PDFFILE="%TEMP%\%REDMON_USER%-%REDMON_JOB%.PDF"
   17 start "YAFPC-JOB" /WAIT %GHOSTSCRIPT% -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile="%PDFFILE%" "%1" -dPDFSETTINGS=/default -dCompatibilityLevel=1.4 >>%LOGFILE%
   18 
   19 echo -------------- >> %LOGFILE%
   20 date /T >> %LOGFILE%
   21 time /T >> %LOGFILE%
   22 echo %REDMON_USER% >> %LOGFILE%
   23 echo %PROFILE% >> %LOGFILE%
   24 echo %PDFFILE% >> %LOGFILE%
   25 
   26 java -jar %YAFPC% -m %REDMON_USER%@%DOMAIN% -i %PDFFILE% -p %PROFILE% 2>> %LOGFILE%
   27 
   28 del %PDFFILE%