【发布时间】:2018-11-22 17:03:21
【问题描述】:
C:\My\Download\Location= 存在此文件夹的目录Naruto,在Naruto里面有Naruto.mkv
C:\My\Other\Location= 我想要的默认下载位置Naruto文件夹已移动,里面有Naruto.mkv
这是我运行的命令:
FOR /R C:\My\Download\Location %f IN (.) DO robocopy "%f" "C:\My\Other\Location" /S
此命令在C:\My\Download\Location 中查找文件夹(.)(%f 是文件夹)并将其复制到Naruto.mkv 中的C:\My\Other\Location 中
问题是在C:\My\Other\Location 中甚至还有Naruto.mkv,而它应该只在文件夹Naruto 中
所以,在命令FOR /R C:\My\Download\Location %f IN (.) DO robocopy "%f" "C:\My\Other\Location" /S之后,我处于这种状态:
C:\My\Other\Location\Naruto\Naruto.mkv
C:\My\Other\Location\Naruto.mkv(这不应该存在)
为什么连Naruto.mkv都复制?
我该如何解决这个问题?
【问题讨论】: