View Single Post
Old 03-17-2012, 03:33 AM   #54
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,977
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by Big McLargeHuge View Post
I'm glad this is working out for everyone haha, unfortunately i am not so lucky
The way that PATH works is that commands (e.g. kindledrm) are detected if they are in a folder that is included in the PATH. This generally includes the current folder. So your first problem is that you should be in your "My Kindle Content" folder, with the ebooks and kindledrm.py. This actually makes the command line simpler:
Code:
cd "C:\Users\Big McLh\Documents\My Kindle Content"
kindledrm B000FC1HBY_EBOK.azw
I may have misspelled the folder or filename, I suggest copying the folder name from the address bar of the open folder (as in your window on the right) and pasting it into the command line via right click. For the filename you can press the tab key to complete the name once you have enough of the name to be unique.

Your next problem is that drmcheck.py isn't being detected as a Python command (it is listed as a TXT file). So something is wrong with it. I think this must be "drmcheck.py ", with a space at the end because "drmcheck.py" would be detected as a Python command (and show up with a blue and yellow icon). Rename the command so that it is detected as Python.

The foreach is now easier too, since all the files are in the current folder:
Code:
echo off
for %a in (*.azw) do kindledrm "%a"
echo on
wallcraft is offline   Reply With Quote