How To Copy A Directory Structure

To copy a directory structure without copying and of the files which are in the directory structure:
Click Start > Run.

xcopy /T /E /I

xcopy “C:Documents and SettingsUser NameMy Documents” “D:My Documents Backup” /T /E /I

The meaning of the switches for xcopy are the following:

/T : Creates directory structure, but does not copy files. Does not include empty directories or subdirectories. /T /E includes empty directories and subdirectories.
/E : Copies directories and subdirectories, including empty ones. May be used to modify /T.
/I : If destination does not exist and copying more than one file, assumes that destination must be a directory


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s