Page 1
Page 1
Started By
Message

Duplicating folder/subfolder structure without copying files

Posted on 11/3/15 at 5:15 pm
Posted by tigerpawl
Can't get there from here.
Member since Dec 2003
22628 posts
Posted on 11/3/15 at 5:15 pm
I want to duplicate an existing folder hierarchy to another drive *WITHOUT* copying the files within the folders - just the folder structure. Is there a quick and easy way to get that done? Thanks in advance...



Posted by Korkstand
Member since Nov 2003
28997 posts
Posted on 11/3/15 at 5:29 pm to
quote:

robocopy "C:\Your Folder" "C:\New Folder" /e /xf *

/e = Copies subdirectories, including empty ones.
/xf = Excludes files matching the specified names or paths. Wildcards “*” and “?” are accepted


OR, if your system has xcopy instead of robocopy:

quote:

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
This post was edited on 11/3/15 at 5:31 pm
Posted by Korkstand
Member since Nov 2003
28997 posts
Posted on 11/4/15 at 12:25 pm to
Did you get it done?
Posted by tigerpawl
Can't get there from here.
Member since Dec 2003
22628 posts
Posted on 11/4/15 at 8:20 pm to
quote:

Did you get it done?
Not yet. Ordering a new external HD soon. Thinking ahead.

Question: So do I just copy/paste your path in the CMD prompt? And substitute drives in your path with the corresponding drives on my side?
This post was edited on 11/4/15 at 8:21 pm
Posted by Korkstand
Member since Nov 2003
28997 posts
Posted on 11/4/15 at 9:06 pm to
Yep
Posted by NoleTideNole
PCB, FL
Member since Oct 2011
315 posts
Posted on 11/5/15 at 4:05 pm to
Robocopy/xcopy are great if you want to sync once or whenever you think about it. You can set them to run automatically if you set up a task in task scheduler on Windows, or you can create a a BAT/script file with the commands from Korkstand.

I used SyncToy for years, freebie from MS and Synkron, both work(ed) breat.

Take a look at SyncBackFree, SyncFolders, or Syncredible if you can schedule the folder syncing to run automatically.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on X, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookXInstagram