How to Copy Directory Structure & Permissions (Without Files) Using Robocopy
Need to copy a folder structure and permissions—but not the files? Follow these simple steps:
- Open Command Prompt – Run as Administrator.
- Use Robocopy – A built-in Windows tool for advanced copying.
- Enter This Command:textCopyDownloadrobocopy “source” “destination” /e /z /SEC /xf *
- Replace
"source"
and"destination"
with your folder paths. /e
– Copies all subdirectories (even empty ones)./z
– Allows resuming if interrupted./SEC
– Copies permissions./xf *
– Excludes all files (only copies folders).
- Replace
Done! Your directory structure and permissions are now copied—without the files.
This method is fast, reliable, and keeps security settings intact.