Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想搜索一个特定的文件类型(.plt),然后我想执行一个命令行命令(例如更改文件类型)。我在 Windows 7 中工作。
我可以写一个 .bat 脚本来解决这个问题吗?
请帮助我.....请给我一些例子......
for /r %i IN (*.plt) DO echo %i
将列出当前目录和子目录中的所有 .plt 文件,将 echo 替换为您选择的命令
不明白你的意思。会是这样吗?
ren *.plt *.foo
如果你必须有一个批处理文件,我曾经写过一个脚本。
http://www.adarshr.com/papers/renamex