Trenthee wrote: ↑Wed Oct 03, 2018 1:01 pm
Is it possible to rename multiple files with different image formats in numbered sequence from the command line?
Maybe...
Have you created a copy of the NConvert help file?
The relevant code is:
Code: Select all
-o filename : Output filename
Use # to specify position of numeric enumerator
For reference other options are:
Code: Select all
-o filename
Use % to specify source filename
Use $ to specify full source pathname
Use $$ to specify source folder name
Use $EXIF:DateModified[date format] to specify EXIF date modified
Use $EXIF:DateTaken[date format] to specify EXIF date taken
Running NConvert in Windows, the follow basic code [tested in a batch file and using relative addressing] seems to produce the basic result you need:
Whether code based on the above produces the result you need will depend in part on the sequence in which your source files are read, considering that you have multiple file extensions and the numeric sort order when they are read: command line software run in Windows reads files with unpadded file numbers 1, 2,10, 11 in the non-numeric sequence 1,10, 11, 2...
Note that there seems to be a bug in NConvert 7.20 in that the output file number count in my test setup starts at 003 rather than 001 -- NConvert 6.93 produces the expected result.
Earlier versions of XnView software can be downloaded here: Old versions
[Edited]