Running Cover Commander from command prompt


To run Cover Commander in the command-line mode:

  1. Click on the Start button on your Desktop and then select Run... on the menu that appears.

  2. In the Run Application window that appears, click on the Browse... button, navigate to the Cover Commander home folder and select the application executable.

  3. Type necessary keys and options and then click OK.

Batch mode


Parsing large amounts of data – multiple projects with multiple images – is much more productive with command line options. Simply run the application with necessary keys in the DOS prompt window, then sit back and relax – the job will be completed automatically.

Command-line options and commands


CoverCommander.exe -b project_file [-r] [-result image_file] [-front image_file] [-left image_file] [-top image_file] [-right image_file] [-back image_file] [-bottom image_file] [-screen image_file] [-color value] [-shadow on|off] [-reflection on|off] [-background value] [-dpi value]

where:
project_file - project file name or mask for multiple files (*.cpj, for example);
-r - recursive folder scanning - when used with project or image file mask;
-result image_file - output image file name;
-front image_file - front-side image file name or mask for multiple files (*.png, for example);
-top image_file - top-image file name or mask for multiple files;
-left image_file - left-side image file name or mask for multiple files;
-right image_file - right-side image file name or mask for multiple files;
-back image_file - rear-side image file name or mask for multiple files;
-bottom image_file - bottom-side image file name or mask for multiple files;
-screen image_file - screen image file name or mask for multiple files;
-color value - set model color (hex format);
-shadow on|off - enable/disable shadow;
-reflection on|off - enable/disable reflection;
-background value - set background color (hex format);
-dpi value - set DPI for output image.

You can use mask only in one place; i.e., you cannot use it in both project name and image name.

The following substitutions can be used in file names:
{PROJECT_FILE} - project file base name (without extension);
{PROJECT_PATH} - path to project file.

If you use mask in an image file name, the following substitutions can be used in other image file names:
{IMAGE_FILE} - image file base name (without extension);
{IMAGE_PATH} - path to image file.

Examples:

"C:\Program Files\Insofta Cover Commander\CoverCommander.exe" -b c:\work\screenshot.cpj

"C:\Program Files\Insofta Cover Commander\CoverCommander.exe" -b c:\work\screenshot.cpj -front c:\work\*.png -result {IMAGE_FILE}_res.png

"C:\Program Files\Insofta Cover Commander\CoverCommander.exe" -b c:\work\*.cpj

"C:\Program Files\Insofta Cover Commander\CoverCommander.exe" -b c:\work\*.cpj -r -result {PROJECT_PATH}{PROJECT_FILE}_res.png

In the last example, image file "{PROJECT_PATH}{PROJECT_FILE}_res.png" will be substituted by "c:\work\books\book1_res.png" for project "c:\work\books\book1.cpj".

Sujets associés