View Single Post
Old 03-14-2012, 07:44 PM   #26
alansplace
Grand Sorcerer
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: 5,895
Karma: 464403178
Join Date: Feb 2010
Location: 33.9388° N, 117.2716° W
Device: Kindles K-2, K-KB, PW 1 & 2, Voyage, Fire 2, 5 & HD 8, Surface 3, iPad
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.
alansplace is offline   Reply With Quote