View Single Post
  #33  
Old 12-13-2010, 09:10 AM
Stream Recorder
 
Posts: n/a
Default

Re: Remove DRM from PDB ebook from B&N (Barnes & Noble),...


Quote:
Originally Posted by 55kevy View Post
Code:
erdr2pml.py book.pdb "my name" ccn
And it worked! So now I just have to tackle the other 300 titles.
Then it is a good idea to create a batch file for that. I'm not an expert in that, but the following should work:

Code:
for %f IN (*.pdb) do call erdr2pml.py %f "name" ccn
or something like that:
Code:
for /f %%a IN ('dir /b *.pdb') do call erdr2pml.py %%a "name" ccn
The /f flag is used to return filenames (not directories).
"dir /b *.pdb" returns a bare directory listing (no filesize, attributes, etc.) with filenames that match the *.pdb pattern.
"%%a" is our variable.
Reply With Quote