cmd - Copy only directories from a command prompt -


I want to copy the directory (this file and subdirectory) from the command prompt to the current directory only.

I have already copied all the files in the current directory using this command.

Copy * d: \ copyfolder

I used these for separate folders to copy a folder:

XCOPY C: \ utils D: \ Backup utilities / i

To copy a folder including all subfolders.

  XCOPY C: \ utils * D: \ Backup utils / s / i  

But the only way to copy the directory could not be found.

The command line should work to copy all folders with subdirectories and files:

for D / A / h / e / k / f / c / d% a (*) in xcopy "% a \ *. *" D: \ copyfolder \

Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -