Copying Directory Structures without Files in windows

  1. Click Start, and then click Run.
  2. In the Open box, type cmd, and then click OK.
  3. Type xcopy /t /e Your Folder New Folder and then press ENTER, where source is the source path for the files to be copied, and destination is the destination path for the files.

Example

xcopy /t /e "C:\Your_Folder" "C:\New_Folder"
/t = Copies the subdirectory structure, but not the files
/e = Copies subdirectories, including any empty ones

No comments:

Post a Comment