移动位于docs下的子文件夹里面的文件到根目录docs下 for d %f in docs\* do pushd…
移动位于docs下的子文件夹里面的文件到根目录docs下
1 2 3 4 5 |
for /d %f in (docs\*) do ( pushd %f move .\*.* .. popd ) |
然后再删除空目录
for /f "delims="
The following will move all the files and folders, including empty ones, deleting each original file after it has moved it.
robocopy /move /e sourcedir destdir
本作品采用创作共用版权协议, 要求署名、非商业用途和保持一致. 转载本站内容必须也遵循署名-非商业用途-保持一致的创作共用协议.
发表回复