View Single Post
Old 08-16-2009, 11:28 AM   #144
texasnightowl
Guru
texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.texasnightowl ought to be getting tired of karma fortunes by now.
 
Posts: 797
Karma: 2873645
Join Date: Jul 2008
Location: Texas
Device: PW5, Oasis 3, K4B(NT), K3/KK
Hi! I'm not Koland, but I use some various batch files in my own processing. I actually make sure that all my original files are named in a specific format and then I use batch to both dedrm and set the author and title metadata. However, if you just want to remove the drm, something like this should work. The following will take any mobi files with a PRC extension and strip the DRM and rename them. For example, a DRM'd book such as "Emma by Jane Austen.PRC" would become "Emma by Jane Austen_free.PRC".

Quote:
for %%i in (*.prc) do "dedrm.py" "%%i" "%%~ni_free.prc" YOURPID
Just put this in a file called doit.bat or something. Have it in the same folder as the files you wish to free and make sure your dedrm.py file is in the same folder or in your system path.

If the files you want to dedrm are mobi instead of prc extensions, just change the command to reflect that. Or if you have both, just have duplicate the command in the file - 1 with prc and the other with mobi

Last edited by texasnightowl; 08-16-2009 at 01:29 PM.
texasnightowl is offline   Reply With Quote