Please enable JavaScript to view this site.

Raster Image Printer

Several batch files to handle common tasks such as file moving, extension renaming and deleting have been provided for your use. These batch files are located in the RunCommands folder in your Raster Image Printer install folder. This is usually C:\Program Files\Raster Image Printer 12\RunCommands\.

Move Files When Completed

Rename File Extensions When Completed

Delete Files on Failure

Move Files When Completed

The PNMoveFiles.bat tool moves the created output files into the folder of your choosing.

This tool is useful when another process is monitoring the output folder waiting to perform a task on the created files. Monitoring the initial output folder can cause premature pick-up while the file is still be created by Raster Image Printer. This can be resolved by monitoring a second folder where the files are moved to when the whole file (or all files) have been created.

Another way to resolve this is to wait for exclusive access to the output file. The file is locked for writing while Raster Image Printer is creating the file.

 

Command Line Arguments

"destination folder"

Required, pass in the full path to the destination folder. Use quotes if there are spaces in the path.

If this folder does not exist, the batch file will try to create it. If that fails, no files are moved.

"text file listing created files

This argument is automatically supplied by the run command as the last argument.

 

Using PNMoveFiles in Raster Image Printer would look like the following:

RunCommandsMoveFilesWhenDone-RAS

 

Rename File Extensions When Completed

The PNRenameFilesExtension.bat tool will rename the file extension of the created files.

This tool is useful when another process is monitoring the output folder for files with a particular file extension, in order to perform additional tasks on the completed files. Creating the file with the desired extension can cause premature pick-up while the file is still be created by Raster Image Printer. This can be resolved by creating the file (or files) with a custom extension, then renaming them with the correct extension when the entire file (or all files) have been created.

Another way to resolve this is to wait for exclusive access to the output file. The file is locked for writing while Raster Image Printer is creating the file.

 

Command Line Arguments

".extension"

Required. The file extension, in quotes, that you want, with the preceding dot (.) character(.), such as ".png".

"text file listing created files

This argument is automatically supplied by the run command as the last argument.

 

Using PNRenameFilesExtension.bat in Raster Image Printer would look like the following:

RunCommandsRenameExtension-RAS

 

Setting a custom file extension instead of the default output type extension is set in the Filename Creator tab, on the File Extension file part:

RunCommandsCustomFileExtension-RAS

 

Delete Files in Failure

The PNDeleteFiles.bat tool deletes the files contained in the list of created files. This tool would commonly be used on Run Commands On Failure section, to clean up any created files.

 

Command Line Arguments

"text file listing created files

This argument is automatically supplied by the run command as the last argument.

 

Using PNDeleteFiles in Raster Image Printer would look like the following:

RunCommandsDeleteOnFailure-RAS