Copy/zip directory structure only? [SOLVED]

  • lioness
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: 23 Jun 2004
  • Posts: 1618
  • Loc: Boston MA
  • Status: Offline

Post September 1st, 2006, 9:13 am

I am interested in knowing if there is a way to copy a folder and all it's subfolders without including the actual files, so the only thing copied/preserved is the directory structure?

Is there a way to do this from DOS or winzip?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post September 1st, 2006, 9:13 am

  • Arcath
  • Graduate
  • Graduate
  • User avatar
  • Joined: 24 Sep 2004
  • Posts: 159
  • Loc: New England
  • Status: Offline

Post September 1st, 2006, 9:38 am

This should do it:

xcopy SourceDir DestinationDir /T /E
- Sometimes it's easier to ask for forgiveness then it is to ask for permission.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: 28 May 2003
  • Posts: 20122
  • Loc: Pittsburgh PA
  • Status: Offline

Post September 1st, 2006, 10:14 am

ulstermonkey wrote:
Copy/zip directory structure only?


xcopy is what you need to do as Arcath suggested, but I think you'll need to unzip it first. I don't believe the command will work until you do.
Boasting Rights Sports Forums and Pools. NFL Preseason pool is available now! Sign up and play for free!
Nuclear Services - www.alaron-nuclear.com
  • lioness
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: 23 Jun 2004
  • Posts: 1618
  • Loc: Boston MA
  • Status: Offline

Post September 5th, 2006, 2:35 pm

Thank you both, that worked like a charm. The folders from location1 unzipped to location2 with no files in them!

Just what I wanted :)

Post Information

  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2008. Driven by phpBB © 2001-2008 phpBB Group.

 
 
 

Need a pre-made web design for your website?

Check out our templates here: Ozzu Templates

Perfect Money : Swiss approach to work with e-finance