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 command 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[_N] image_file] [-left[_N] image_file] [-top[_N] image_file] [-right[_N] image_file] [-back[_N] image_file] [-bottom[_N] image_file] [-screen[_N] image_file] [-color[_N] value] [-zoom 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[_N] image_file - front-side image file name (for Nth object, if it is required) or mask for multiple files (*.png, for example);
-top[_N] image_file - top-image file name or mask for multiple files;
-left[_N] image_file - left-side image file name or mask for multiple files;
-right[_N] image_file - right-side image file name or mask for multiple files;
-back[_N] image_file - rear-side image file name or mask for multiple files;
-bottom[_N] image_file - bottom-side image file name or mask for multiple files;
-screen[_N] image_file - screen image file name or mask for multiple files;
-color[_N] value - set object color (hex format RRGGBB);
-zoom value - set zoom value;
-shadow on|off - enable/disable shadow;
-reflection on|off - enable/disable reflection;
-background value - set background color (hex format RRGGBB);
-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\ss\*.png -result {IMAGE_FILE}_res.png

"C:\Program Files\Insofta Cover Commander\CoverCommander.exe" -b c:\work\two_screenshots.cpj -front c:\work\first_ss\*.png -front_2 c:\work\second_ss\{IMAGE_FILE}.png -result c:\work\result_ss\{IMAGE_FILE}.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".

Verwandte Themen