Quote:
Originally Posted by chrisix
@JvdW
yes, please 
|
OK, here we go:
Download from
http://sourceforge.net/projects/unxutils/files/
the following package:
UnxUtils.zip
Unpack the UnxUtils.zip where you want it (ex: c:\unixutils), note where it ends up since we need the path to the bin folder and the path to usr\local\wbin
Download pdftotext from foolabs.com:
ftp://ftp.foolabs.com/pub/xpdf/xpdf-3.02pl4-win32.zip
Extract the contents, or pdftotext.exe alone, to the usr\local\wbin folder
Open a command prompt
type: set PATH=c:\unixutils\bin;c:\unixutils\usr\local\wbin; %PATH%
type: sh
(this should give you a unix like shell which will run the batch file)
type: ls
(this should give you a listing of files in your current directory)
type: exit
You're back at the command prompt of Windows.
Copy the attached isbn.bat into the wbin folder and rename it to isbn.zsh, edit the first line to reflect your installation of UnxUtils.
(For unknow reasons to me I can't upload isbn.zsh

)
Copy your PDF's, if you're not trusting me that they won't be touched

, into a temporary folder, no sub folders allowed, for example C:\PDF.
In the command prompt type:
cd c:
cd \pdf
type: sh
type: isbn.zsh
The script will try to find the following order of ISBN's:
ISBN-13
ISBN-10
ISBN:
ISBN
If found it will rename the file and move it into the done folder. Locations can be changed in the script if needed but first leave the defaults since it will make finding problems much easier.
After that make sure that Calibre is set to read the isbn number from the filename and start importing. Preferences->Add/Save->Adding Books>Regular expression: (?P<isbn>[0-9].+$)
Further I have 'Read metadata only from file name' not checked.
That should do the trick, I hope ;-)
Regards,
Joop