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

c# - Highlight all words containing a letter in a richtextbox -

Admob interstitials not clickable on Nexus 5 (Android 4.4.2) -

java - MigLayout - selective component fill -