Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle

Notices

Reply
 
Thread Tools Search this Thread
Old 03-14-2012, 02:08 PM   #16
CRussel
Wizard
CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.CRussel ought to be getting tired of karma fortunes by now.
 
CRussel's Avatar
 
Posts: 2,653
Karma: 23501034
Join Date: Jul 2010
Location: Sunshine Coast, BC
Device: K PW, K3 3G, K3 WiFi, Original Fire, Fire HD
Given that it's a Python script, it's trivial to get that script to loop through a list of files. I haven't looked at Paul's script, but if you have problems getting it to work on multiple files, I'm confident that someone can help with that.
CRussel is offline   Reply With Quote
Old 03-14-2012, 03:26 PM   #17
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 2,579
Karma: 6598484
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle Keyboard, Kindle Fire 2nd Gen, & Kindle PaperWhite
Cool Check Kindle eBook DRM

Quote:
Originally Posted by pdurrant View Post
You might also find this more sophisticated script useful. It not only identifies the DRM, but also the kind of eBook.

Hmm.. come to think of it, it probably now needs updating for Print Replica and KF8 files... always something new!
Quote:
Originally Posted by sadievan View Post
Thanks for that Paul. Is there a way to do more than one file or must they be done individually.

Carol
Quote:
Originally Posted by CRussel View Post
Given that it's a Python script, it's trivial to get that script to loop through a list of files. I haven't looked at Paul's script, but if you have problems getting it to work on multiple files, I'm confident that someone can help with that.
Two other thoughts (I'd do one or both myself if I were a python programmer):

1. add multiple file capability, text file output and a gui.
2. add multiple file capability and make it a Calibre plug-in.

Also distribute it in Tools.
__________________
Post in The Dresden Files thread!
alansplace is online now   Reply With Quote
 
Enthusiast
Old 03-14-2012, 04:08 PM   #18
JSWolf
Mobile Reader Geek
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 34,227
Karma: 13801376
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Sony Reader PRS-650, iPad
The problem (as I see it) is a lot of people who have only really used a GUI get lost with a command line (CMD, Shell, etc.). What someone needs to do is give the OP a step-by-step including CDing to the correct directory where the eBooks live. Just giving the command to run won't help since the OP doesn't even know how to get to the proper directory.
__________________
JSWolf is offline   Reply With Quote
Old 03-14-2012, 04:31 PM   #19
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 2,579
Karma: 6598484
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle Keyboard, Kindle Fire 2nd Gen, & Kindle PaperWhite
Cool Check Kindle eBook DRM

Quote:
Originally Posted by Big McLargeHuge View Post
Do you see that when you open the command window it's in the subdirectory 'C:\Users\Big McLh>'? You need both 'kindledrm.py and the file you're checking in that subdirectory. Then type 'kindledrm.py thefilename.azw' and press 'ENTER'.
__________________
Post in The Dresden Files thread!
alansplace is online now   Reply With Quote
Old 03-14-2012, 04:56 PM   #20
pdurrant
The Grand Mouse
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 24,353
Karma: 73606030
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle 2; iPhone 3G; Bookeen Opus; NOOK ST GlowLight
Quote:
Originally Posted by sadievan View Post
Thanks for that Paul. Is there a way to do more than one file or must they be done individually.

Carol
If you have a Mac, you can use the Applescript wrapper and drag & drop as many as you like at once, or even just the folder containing the ebooks.

On Windows or Linux, you'd have to write some kind of batch file wrapper.
__________________

Kai Lung Raises His Voice
, now available at Amazon and BooksOnBoard
A new collection of ‘Kai Lung’ stories by Ernest Bramah, including four previously unpublished stories.

Need professional help formatting your ebook? Send me email.....................Books I've read in 2013, 2012, 2011, 2010
pdurrant is offline   Reply With Quote
Old 03-14-2012, 06:54 PM   #21
sadievan
Wizard
sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.
 
sadievan's Avatar
 
Posts: 1,410
Karma: 3000000
Join Date: Nov 2010
Device: Kindle3, iPhone, Kindle Fire
Quote:
Originally Posted by pdurrant View Post
If you have a Mac, you can use the Applescript wrapper and drag & drop as many as you like at once, or even just the folder containing the ebooks.

On Windows or Linux, you'd have to write some kind of batch file wrapper.
Am on Windows 7. I tried

c:\drm check>drmcheck.py "c:\ebooks\*.*"

but I guess that was wrong.

Carol
__________________
Free online storage with Dropbox. Sign up with my link and we both get an extra 500MB free.
http://db.tt/AckwCI3Y

Swagbucks search engine. Earn points while you search. A great way to get Amazon gift cards. http://www.swagbucks.com/refer/sadievan
sadievan is offline   Reply With Quote
Old 03-14-2012, 06:59 PM   #22
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
Quote:
Originally Posted by sadievan View Post
I tried

c:\drm check>drmcheck.py "c:\ebooks\*.*"
Try:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a"
echo on
wallcraft is offline   Reply With Quote
Old 03-14-2012, 07:12 PM   #23
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 2,579
Karma: 6598484
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle Keyboard, Kindle Fire 2nd Gen, & Kindle PaperWhite
Cool Check Kindle eBook DRM

Quote:
Originally Posted by sadievan View Post
Am on Windows 7. I tried

c:\drm check>drmcheck.py "c:\ebooks\*.*"

but I guess that was wrong.

Carol
Yeah, I tried "*.azw" and it was no good, I don't think either the script or python likes "*". It said 'NOT MOBI', whatever that means?!
__________________
Post in The Dresden Files thread!
alansplace is online now   Reply With Quote
Old 03-14-2012, 07:21 PM   #24
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 2,579
Karma: 6598484
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle Keyboard, Kindle Fire 2nd Gen, & Kindle PaperWhite
Cool Check Kindle eBook DRM

Quote:
Originally Posted by wallcraft View Post
Try:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a"
echo on
That worked like a champ. So in addition to that how can one redirect the output to a text file?
__________________
Post in The Dresden Files thread!
alansplace is online now   Reply With Quote
Old 03-14-2012, 07:28 PM   #25
ixtab
Mayan Goddess
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,295
Karma: 4929663
Join Date: Dec 2011
Device: K3/K4/K5/PW
Quote:
Originally Posted by alansplace View Post
That worked like a champ. So in addition to that how can one redirect the output to a text file?
Try this:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a" >> out.txt
echo on
NOTE: I don't have windows, so I'm just guessing. It should work, but I can't guarantee it.
ixtab is offline   Reply With Quote
Old 03-14-2012, 07:44 PM   #26
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 2,579
Karma: 6598484
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle Keyboard, Kindle Fire 2nd Gen, & Kindle PaperWhite
Cool Check Kindle eBook DRM

Quote:
Originally Posted by ixtab View Post
Try this:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a" >> out.txt
echo on
NOTE: I don't have windows, so I'm just guessing. It should work, but I can't guarantee it.


First off, the command needs to be 'kindledrm.py' (forgot to mention this earlier).

The redirect operator needs to be a single '>', not '>>'.

When it is done the output text file only has the last of the processed file listed, so I assume that its re-writing the file on each pass of the loop instead of appending to it.
__________________
Post in The Dresden Files thread!
alansplace is online now   Reply With Quote
Old 03-14-2012, 07:46 PM   #27
ixtab
Mayan Goddess
ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.ixtab ought to be getting tired of karma fortunes by now.
 
ixtab's Avatar
 
Posts: 2,295
Karma: 4929663
Join Date: Dec 2011
Device: K3/K4/K5/PW
Quote:
Originally Posted by alansplace View Post


First off, the command needs to be 'kindledrm.py' (forgot to mention this earlier).

The redirect operator needs to be a single '>', not '>>'.

When it is done the output text file only has the last of the processed file listed, so I assume that its re-writing the file on each pass of the loop instead of appending to it.
Yes, because you're using ">" instead of ">>"
> overwrites, >> appends.
ixtab is offline   Reply With Quote
Old 03-14-2012, 07:51 PM   #28
sadievan
Wizard
sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.
 
sadievan's Avatar
 
Posts: 1,410
Karma: 3000000
Join Date: Nov 2010
Device: Kindle3, iPhone, Kindle Fire
Quote:
Originally Posted by alansplace View Post
That worked like a champ. So in addition to that how can one redirect the output to a text file?
OK. Exactly what did you type in the cmd line. I'm not having any luck.

Carol
__________________
Free online storage with Dropbox. Sign up with my link and we both get an extra 500MB free.
http://db.tt/AckwCI3Y

Swagbucks search engine. Earn points while you search. A great way to get Amazon gift cards. http://www.swagbucks.com/refer/sadievan
sadievan is offline   Reply With Quote
Old 03-14-2012, 07:57 PM   #29
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 2,579
Karma: 6598484
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle Keyboard, Kindle Fire 2nd Gen, & Kindle PaperWhite
Cool Check Kindle eBook DRM

Quote:
Originally Posted by ixtab View Post
Yes, because you're using ">" instead of ">>"
> overwrites, >> appends.
I got an error with that so I tried the single and it worked like I said. I suppose the error was complaining that the output file didn't exist, however it created one. Then it it kinda' worked.

Anyway, now it works like a champ,

This woke the decades old programming part of my brain, at least a tiny bit.
__________________
Post in The Dresden Files thread!
alansplace is online now   Reply With Quote
Old 03-14-2012, 08:08 PM   #30
sadievan
Wizard
sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.sadievan ought to be getting tired of karma fortunes by now.
 
sadievan's Avatar
 
Posts: 1,410
Karma: 3000000
Join Date: Nov 2010
Device: Kindle3, iPhone, Kindle Fire
Quote:
Originally Posted by wallcraft View Post
Try:
Code:
echo off
for %a in (c:\ebooks\*.*) do kindledrm "%a"
echo on
Tried this

C:\Users\Carol\DRM Check>drmcheck.py "c:\ebooks\%a"
Traceback (most recent call last):
File "C:\Users\Carol\DRM Check\drmcheck.py", line 211, in <module>
sys.exit(main())
File "C:\Users\Carol\DRM Check\drmcheck.py", line 113, in main
infileobject = file(infile,'rb')
IOError: [Errno 2] No such file or directory: 'c:\\ebooks\\%a'

What am I doing wrong.

Carol
__________________
Free online storage with Dropbox. Sign up with my link and we both get an extra 500MB free.
http://db.tt/AckwCI3Y

Swagbucks search engine. Earn points while you search. A great way to get Amazon gift cards. http://www.swagbucks.com/refer/sadievan
sadievan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DRM Check: Find out what DRM that ebook has got. pdurrant Workshop 20 08-03-2012 12:59 PM
.html ebook Security check me Xabache Other formats 0 09-17-2011 02:14 AM
How can you tell if the Kindle Store ebook has DRM? rock Mobi 3 12-14-2009 05:55 PM
ShineBook Mobile eBook Reader announced in Germany, reads both DRM-prc + DRM-ePub ... K-Thom News 11 12-12-2009 06:50 AM
Please check ebook template AlexBell Workshop 9 07-24-2009 02:12 AM


All times are GMT -4. The time now is 03:15 PM.


MobileRead.com is a privately owned, operated and funded community.