FG
💻 Software

Batch file to copy folder structure

Fresh5 days ago
Mar 15, 202624636 views
Confidence Score0%
0%

Problem

I want write a batch file that can copy a folder structure. This batch file would copy all folders in the source directory to the destination directory - the files themselves would not be copied. For example, say there is a folder with the following structure: The tool would create a folder like th…

Error Output

src
src\a\file1
src\a\file2
src\a\b\file1
src\c

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Batch file to copy folder structure

Low Risk

Try: Just make sure it's not cyclical. To include empty directories, add /E:

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment