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.
我有具有以下结构的文件夹:
/文件夹/processed_2013_0101 /文件夹/processed_2013_0223
等等
我想要做的是编写一个批处理脚本将所有文件移出最近处理的文件夹。我将如何指定是哪个文件夹?
@ECHO OFF SETLOCAL FOR /f %%i IN ('dir /b /ad \folder\processed_*') DO SET mrf=%%i ECHO Most recent=%mrf%
然后move %mrf%\* destination
move %mrf%\* destination
目的地在哪里...