bat文件递归子目录和做一些事情 [英] Bat file to recurse sub-directories and do Something
本文介绍了bat文件递归子目录和做一些事情的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要写一个bat文件,将通过目录结构递归和转换所有的ePub文件,以摩比斯在命令行上。我已经安装口径,并且基本的命令行为,这是
I need to write a .bat file that will recurse through a directory structure and convert all epubs to mobis on the command line. I have Calibre installed, and the basic command-line for this is
ebook-convert MyFile.epub MyFile.mobi.
我敢肯定,这是一个人同步在那里,但我一直在努力做到这一点半,早上没有成功。
I'm sure this is a synch for someone out there, but I have been trying to do it half the morning without success.
任何帮助非常AP preciated。
Any help very much appreciated.
推荐答案
尝试:
for /r %I in (*.epub) do "ebook-convert.exe" "%I" "%~nI.mobi"
祝你好运!
这篇关于bat文件递归子目录和做一些事情的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文