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:
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
Post a Comment