0

What i need is for the script to sweep the folders within a folder and pick up certain files and move them all to one destination folder.

MOVE C:\Users\AAA\Movies\**\*.mkv C:\Users\AAA\Move

**= scan through folders and move all mkv files is what I wanted.

I'm new to batch scripting and i was hoping the * would scan through the folders, but i guess it isn't that easy. Any help would be appreciated.

4

2 回答 2

0

...并将它们全部移动到一个目标文件夹...

尝试并根据需要进行调整

FORFILES /P "c:\Users\AAA\Movies" /S /M *.mkv /C "cmd /c move @path C:\Users\AAA\Move"
于 2013-11-06T15:42:44.300 回答
0

这是一个简单的批处理方法 - 它会提示任何文件名冲突。

@echo off
for /r "C:\Users\AAA\Movies\" %%a in (*.mkv) do move /-y "%%a" "C:\Users\AAA\Move"
于 2013-11-07T02:51:17.840 回答