PPRuNe Forums - View Single Post - Adobe Acrobat (V8)
View Single Post
Old 6th March 2009 | 23:59
  #2 (permalink)  
Jofm5
 
Joined: Jan 2008
Posts: 525
Likes: 0
From: LONDON
It is all to do with sorting....

If you sort alphabetically (which I imagine acrobat is) you will be sorting numbers as strings... e.g.

1
10
11
12
....
2
20
21
etc..

To get around this problem you need to force the strings to match a numerical sort order which will be to pad out the files with 0's on the left to the length of the largest number.
e.g.

001
002
003
004
..
010
011
012
..
100
101
102

---
If you have a large number of files then it can be time consuming to do manually. I dont mind creating a batch file for you (I can do this quickly) using a textpad macro if you want to provide me with a file of the directory listing.

To create a file of the directory listing open a command prompt. then go to the folder e.g. :-

Code:
 CD C:\myhtmlfiles
 DIR /b *.html > dirlist.txt
The file I would need would be dirlist.txt - if you want me to do it for you please pm me and I will pm you back my email address. Alternatively if you download textpad I can talk you through it in the thread so you can do it for other books you may have - however I will need to see samples of the filenames first so I know what I am working with.

Cheers
Jofm5 is offline  
Reply