批处理将目标文件夹所有文件移动到当前文件夹

来源:百度知道 编辑:UC知道 时间:2024/05/05 20:11:06
批处理
当前文件夹新建 photo


C:\Documents and Settings\zsxy\My Documents\The KMPlayer\Capture
下所有的 *.jepg

移动到 当前目录\photo
例如 E:\剪辑\已完成\HFS.avi\夏恩煦RHFS.avi\photo

谢谢:)
Xcopy /e "C:\Documents and Settings\zsxy\My Documents\The KMPlayer\Capture\*.jpeg" "photo\* "



@echo off
md photo
copy /y "%userprofile%\My Documents\The KMPlayer\Capture\*jepg" "%cd%\photo"

都不能把
C:\Documents and Settings\zsxy\My Documents\The KMPlayer\Capture
下*.jepg

移动到当前目录的 photo 文件夹内(批处理在当前目录执行)

而且我是想移动,就是MVOE 不是copy

非常感谢:)

@echo off
md photo
copy /y "%userprofile%\My Documents\The KMPlayer\Capture\*jepg" "%cd%\photo"

move就把copy改成move就行,但你必须给的是正确的路径,做这个P很简单,如果我们的代码失败了,你所提供的路径会很有可能出问题...

用XCOPY之类的吧..

哦你是要剪切啊 ,这样

md photo
move "C:\Documents and Settings\zsxy\My Documents\The KMPlayer\Capture\*.jpeg" "photo\*"