View Single Post
Old 09-05-2012, 01:36 PM   #10
pwright2
Connoisseur
pwright2 began at the beginning.
 
Posts: 92
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
Hmmmph! After all that I did do a little googling and discovreed all I needed to do was add a /r in the FOR command. Well, I had to change the reference to drmcheck to drmcheck.py. I'm lrunning on a different machine from originally. May have something to do with it. Anyhow, this worked fine and would scan thru the entire Calibre library and provide a list indicating what was encrypted and what not.

There was a lot of output from non book files though, so I modified it to scan only for book files that I know of. So I made the change below to the bat files and I think that satisfies my needs and I'll leave it at that.

Text of modified DRM.BAT

-----------
echo off
echo Checking files for DRM > Filelist.txt
for /r %%a in (*.azw) do drmcheck.py "%%a" >> Filelist.txt
for /r %%a in (*.azw3) do drmcheck.py "%%a" >> Filelist.txt
for /r %%a in (*.mobi) do drmcheck.py "%%a" >> Filelist.txt
for /r %%a in (*.txt) do drmcheck.py "%%a" >> Filelist.txt
for /r %%a in (*.pdf) do drmcheck.py "%%a" >> Filelist.txt
echo on
----------------

-----Paul-----
pwright2 is offline   Reply With Quote