$(cpicName) Help - File Name Templates
Filename Templates allow Using filename templates, you can easily name a sequence of images to match the subject, location, or type of file. |
File Name Templates
A filename template is basically a format for your filenames. This format will only
be used when
Files named with a template are numbered in sequence. You have control over the length of the numbers used, the range of the numbers, and any text that comes before or after the number.
Template Format
The format for a filename template is:
In the above example, text can be anything. You can place whatever text you wish at the beginning or end of the filename.
The center portion of the above example, %03d determines how the number is displayed in the filename. You should usually start this sequence with % and always end it with d (for digits). The number which comes between these (03 in this case), is the number of digits in the file name. The leading zero determines whether or not the number is padded with leading zeros.
Note: Under Windows 3.1, you are limited to eight characters for the major part of the filename.
File Extensions
The file extension (.jpg, .bmp, etc.) will usually be determined by the type of file you are saving the
image as. You can override the extension in the Save As dialog or ABC dialogs.
Example:
The template includes the sequence '%01d'. The numbers of the files will be 1, 2, 3, 4, 5,
6, 7, 8 , 9 - all 1 digit because the number 1 was placed between the '%0' and the 'd.' Another
example: '%08d' - the numbers will contain 8 digits - 00000001, 00001000, 00000893...etc.
Sample Templates
Template | Sample Results |
text%03dtext |
text001text.jpg text024text.jpg text089text.jpg |
image%02d |
image03.bmp image11.bmp image18.bmp |
dog%5d |
dog1.png dog27.png dog71294.png |
%04dfile |
0024file.gif 1038file.gif 4397file.gif |