Mario Netto’s Tech blog

My notes from the software world

Copy over directory structure without files

Posted by Mario on February 19, 2009

XCOPY is a powerful command with multiple options. Use XCOPY to copy over a directory and it’s sub-folders without the files.

View XCOPY options

XCOPY /?

The following XCOPY copies over just the directory structure without the files in the folder.

C:\Temp>XCOPY c:\Temp\ZipTest C:\Temp\NewZipTest /T /E

Advertisement

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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

 
Follow

Get every new post delivered to your Inbox.