How to copy files from all subfolders to a single folder?

How to copy files from all subfolders to a single folder?

  1. Open a Command Prompt window.
  2. Run the following commands, one by one and press ENTER after each line
md "d:\all snaps"
cd /d "d:\your source folder"
for /r %d in (*) do copy "%d" "d:\your destination folder\"

If a file of the same name exists in the destination, you’ll be asked if you want to overwrite or skip the file.


留言

這個網誌中的熱門文章

HP DeskJet 3720 Printer 不能直接連線WiFi 打印和 WiFi Direct default password

Xeron 影印機 error code 「016-799」/ 異常結束 016-799 解決方法

Adobe reader DC open file very slow 解決開PDF超慢問題。