Another Numbering Method

Would you like Bulk Rename Utility to offer new functionality? Post your comments here!

Another Numbering Method

Postby AIR&SPACE » Wed Mar 16, 2011 3:40 pm

I'm trying to rename a large number of files that are numbered sequentially as such
1
2
3
...
9
10
11
...
99
100
101
...
999
1000
1001
etc
etc

Anyways, when the sort by Name option is chosen it reorders them to:

1
10
100
1000
101
102
...
109
11
110
111
112
...
119
12
etc
etc

I should note that I am running CFD on a different comp, to which I have limited physical access, which outputs the files sequentially. In order to process the files I need to transfer them to my computer, so I use a P2P interface (retroshare for those interested). The files transfer in haphazard order which makes it useless to sort by date created/modified. There are only two workarounds that I see.
The first is to implement a "pad to 'x' places " feature. For example, if we pad to 2 places, 1 becomes 01 while 10 stays 10. Padding to 3 places would create 001 and 010 respectively. Then I could resort by name and do my stuff.
The second is to "more smartly" sort numbers so that 1000 is seen to be larger than 1:999.

If there is already a workaround for my problem, would someone please inform me, it would be most appreciated.
AIR&SPACE
 
Posts: 2
Joined: Wed Mar 16, 2011 3:22 pm

Re: Another Numbering Method

Postby AIR&SPACE » Wed Mar 16, 2011 3:52 pm

nvm, I searched the board and found a similar post, (well more like finished reading it; I got lost trying to do the RegExp it talked about) and saw the part about turning off the logical sort. Well, I turned it on just for kicks, and it works. :D

So yeah,

Problem: numbers not sorting properly due to number of digits
Solution: Turn on Logical Sorting (Options>Sorting>Logical Sorting)

Unless it's contrary to this board's etiquette, I'll leave this thread up in case someone else has similar problem and does a search.
AIR&SPACE
 
Posts: 2
Joined: Wed Mar 16, 2011 3:22 pm

Re: Another Numbering Method

Postby Stefan » Wed Mar 16, 2011 8:40 pm

Great you solved it yourself, good work.

And thanks for sharing the answer!


.
Stefan
 
Posts: 736
Joined: Fri Mar 11, 2005 7:46 pm
Location: Germany, EU


Return to Suggestions