FG

Commmand line command to copy entire directory (including directory folder) to another directory

Fresh3 days ago
Mar 15, 2026438579 views
Confidence Score1%
1%

Problem

using the command line, I'd like to copy one directory to another. For example there is directory and . I'd like to copy into so that the result will be Everything I've found so far will only copy the files and folders contained in into , but leaves out the parent directory.

Error Output

C:/test

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Commmand line command to copy entire directory (including directory folder) to another directory

Low Risk

Try using with the switch. More info here. I haven't had to access this information from my brain in years! UPDATE The documentation says that it copies all files and subdirectories from the source directory (meaning that the parent directory is not created), so you would have to create in first and then use .

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment