That's the 'Windows' sort order and I'm surprised that it is being used, I'll think about that later...
Is not acceptable to renumber the files by 'padding' the page numbers so that 1 becomes 001, which would overcome the problem? You could easily add a line in your batch file before the creation of the output file to do that...
If not, you could renumber the files if you were working a copy of the originals, but that isn't practical from what you've said?
Char removed from File name in long list
Moderators: XnTriq, helmut, xnview
-
- XnThusiast
- Posts: 4185
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
-
- Posts: 21
- Joined: Mon Apr 04, 2016 8:51 am
Re: Char removed from File name in long list
Hi
at the end, i generate a script to copy and rename all file, with padding...
It took all night, and i'm starting processing now in the simpler way
roberto
at the end, i generate a script to copy and rename all file, with padding...
It took all night, and i'm starting processing now in the simpler way
roberto
-
- XnThusiast
- Posts: 4185
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Char removed from File name in long list
I've been trying that too -- using Bulk Rename Command (the command line verion of Batch Rename Utility) -- but I've just confirmed that the sort order problem arises with that too, so the files are still read and renamed in the 'Windows' sort order which will put the pages in the wrong order...RobertoG wrote:at the end, i generate a script to copy and rename all file, with padding...
It took all night, and i'm starting processing now in the simpler way
So you have a solution that works?
Could you post your code?
-
- Posts: 21
- Joined: Mon Apr 04, 2016 8:51 am
Re: Char removed from File name in long list
well...
copy + Excel formulas slution...
i copied all files
If file contains "_P", i generate
that permit me to use
SURELY it can be done better than this, but i'm going after deadline day
copy + Excel formulas slution...
i copied all files
If file contains "_P", i generate
Code: Select all
ren 00222_00042_6001\1001011834_P1.tif 1001011834_P001.tif
ren 00222_00042_6001\1001011834_P2.tif 1001011834_P002.tif
ren 00222_00042_6001\1001011834_P3.tif 1001011834_P003.tif
ren 00222_00042_6001\1001011834_P4.tif 1001011834_P004.tif
ren 00222_00042_6001\1001011834_P5.tif 1001011834_P005.tif
ren 00222_00042_6001\1001011834_P6.tif 1001011834_P006.tif
ren 00222_00042_6001\1001011834_P7.tif 1001011834_P007.tif
ren 00222_00042_6001\1001011834_P8.tif 1001011834_P008.tif
...
...
Code: Select all
\nconvert.exe -out pdf -multi -quiet -D -overwrite -c 1 -o 1001011834.pdf 1001011834_P*
-
- XnThusiast
- Posts: 4185
- Joined: Sun Apr 29, 2012 9:45 am
- Location: Cheltenham, U.K.
Re: Char removed from File name in long list
PowerShell has the same issue but this thread suggests ways to obtain natural sort order, if you can understand it...RobertoG wrote:SURELY it can be done better than this, but i'm going after deadline day
With that code enabled you could probably just use NConvert with these inputs:
Code: Select all
... 100912594*.tif 100915388*.tif 100920148*.tif
You may have heard that MicroSoft announced last week that native Linux bash would be incorporated into Windows 10 in the 'Anniversary Update' this summer, that could be a very significant development for running scripts in Windows...