問dos copy檔案的方法

將c:\xxx成個copy去d:\
要保持xxx入面完整的目錄結構
並且, 淨係copy jpg
那麼, 指令該怎麼打呢?

xcopy c:\yourfolder *.jpg folderuwant

TOP

xcopy c:\yourfolder *.jpg folderuwant
mclarenfung 發表於 2010-2-18 16:34


要用 /E

TOP

I think should be:

xcopy c:\xxx\*.jpg d:\xxx\ /e

Hope this help.

TOP

don't use xcopy, use robocopy

TOP

don't use xcopy, use robocopy
$foo 發表於 2010-2-18 21:50



    Is there any outstanding features that make robocopy more suitable for this task ?

TOP

don't use xcopy, use robocopy
$foo 發表於 2010-2-18 21:50



我也有問題, 用xcopy會有甚麼問題?

TOP

回復 6# little_keung


when copying large number of files, xcopy might fail to copy some and don't report error, especially if you are copying over network or your hardware has problem.

in short, use robocopy, never use xcopy for now <== from developer working in M$

TOP

ROBOCOPY 用唔到係純DOS mode...只可用係WINDOWS 入面的CMD

TOP

xcopy is your friend

TOP