本文編寫於 1737 天前,最後修改於 1146 天前,其中某些信息可能已經過時。

Windows如何只複製資料夾結構而不複內容
前言:
學校每一新學年開始會按上年資料夾結構複製到新的學年而不複內容。例如: 2019-2020的目錄結構,複製一份2020-2021的資料夾同一目錄結構。
可以使用 XCopy 命令:

如在TestPaper的資料夾內, 只有2019-2020的資料夾, 我們想複製一份2020-2021的資料夾目錄連同空白的資料夾。
在CMD內只需要一條指令
xcopy 2019-2020 2020-2021 /t /e
/T
創建目錄結構,但不複製檔/E
包括空目錄和子目錄


或者
robocopy "D:\SHARE\Management\2021-2022" "D:\SHARE\Management\2022-2023" /e /xf *
使用robocoyp
需要完整的路徑
在Linux下可以使用 rsync 命令:
rsync -a --include '*/' --exclude '*' 2021-2022/ 2022-2023
2021-2022
為今學年2022-2023
為新學年
結語:
方法有好多種, 我只是列舉其中一種可行的方法。
I am sure this piece of writing has touched all the internet people,
its really really nice piece of writing on building up new blog. https://tonybet4au.wordpress.com/
https://tonybet4au.wordpress.com/ 2025-10-21 03:19
We stumbled over here from a different web page and thought I may as well check things out.
I like what I see so i am just following you.
Look forward to looking into your web page yet again. https://azurslot.wordpress.com/
https://azurslot.wordpress.com/ 2025-10-20 13:38
https://gfj-google.ms-de.ru
biegspfmb 2024-12-18 12:56