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.
批处理文件中的命令是什么获取文件名并重命名。
例如:在 c:\temp\ 文件夹中我找到了.txt
输出:c:\temp\found_092513.txt
最好的问候, 里尔
我几乎可以肯定这不是你假装的,但这就是你要问的:
FOR %%i IN (C:\temp\*.*) DO ECHO REN "%%~i" "%%~ni_092513%%~xi"
检查输出并删除ECHO以使其工作。
ECHO