Contact :
Mail address displayed in graphic format for antispam reason

Name files with a numeration

Actuality : demonstration of a shopping cart component, at 


Let us imagine a certain number of images have been created in a software dedicated to that, and that we want to save them in a numerated and coherent series, that the software has forgotten to implement.

Each file name will first contain the name of the series -what is common to all the series- then the date, the number of the file in the series, and to finish with, the type of the file (that must begin with a dot).

The date will appear in the format year (four digits), month (two digits), day (two digits), so that the alphanumeric sorting is equivalent to the chronological sorting. This signifies that you can reuse the name of the series another day, and thus follow the series, that will appear in the chronological order if the directory is classified alphabetically.

The number of the file in the series appears by default with two digits, it is possible to change this value thanks to an horizontal lift control. This is a way to adapt to the number of images that has to be saved. In case of doubt about his number, it is better to be generous about the number of digits.

Number of digits for the number

For the moment being, this program is available in French. Programs will be translated in the order this will be requested.

The following refers to two dialog boxes  : 

  • "save as" in the image creation software, and 
  •  the dialog box shown by the NomImage program (illustration hereunder). 

For more clarity, the instructions about the image creation software will be displayed on green background .

After loading the NomImage program, the first thing to do is to seize the name of the image series. After that, select the program where the images to save are, for example by clicking on its window or its icon (in Windows XP, the icons are in the taskbar).

Launch the save command, as mentionned by the documentation of the image creation program. Once the "save as" dialog box is opened, depress the F11 key. The selected zone (by default where you type the filename) is completed with the name as it appears in the NomImage dialog box, and simultaneously the counter is incremented of 1 for the next picture. The place where the name appears in the NomImage dialog box is squared in red on the illustration, for more clarity.

According to the checkboxes that are checked on the right (see the illustration), the Ctrl A keys can be sent before the file name (which has for results that the whole zone is selected before typing the name, so that the previous name is replaced), and the Enter key can be sent afterwards (which generally has for effect to validate the saving).

Nota : The F11 key reacts in a delay of half a second. This delay avoids to send several successive names in the "save as" dialog box. One brief depression on the key is suffisant, and then half a second of patience.

In case of mismatch, it is possible to correct the number of the current image. The + button, above the seizing zones in the NomImage dialog box, allows you to increase the number of 1. The - button underneath allows to decrease the number of 1. It is also possible to seize a value directly in the number zone. This value is taken in account when you leave the seizing zone.

Once all the images are saved, you can close the NomImage program, that stayed opened during the operations.

Attention, this program runs by key simulations. You can obtain a different results according to the state of the keyboard (caps lock, num lock).


NomImage This program requires the VB execution kit. This is available on Microsoft's site, or installed with other programs of this site, which are proposed with an installation program. -

Go to the main page

Valid XHTML 1.0 Transitional