Results 1 to 6 of 6
  1. #1
    5 Star Lounger
    Join Date
    May 2001
    Location
    Philadelphia, Pennsylvania
    Posts
    676
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Copy folder structure not contents? (Windows XP Pro)

    For our new fiscal year, I would like to copy the existing "folder structure" to the FY05 folder. That structure is by company, with 12 monthly folders within that, and 4 folders within each month's folder. Copying the whole enchilada, including all this year's hundreds of files that exist within each folder, then deleting the folders-even en-masse- is a depressing prospect. Also, hand-crafting a new set of folders is also daunting. Is there some utility I am unaware of, or is there some simple approach to doing something like this? Thanks!

  2. #2
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Copy folder structure not contents? (Windows XP Pro)

    I know I can do this with ROBOCOPY, from one of the NT4/W2K Resource Kits, or preferably the XP version from Windows 2003 Server Resource Kit Tools - but beware the 12 MB-ness of the download just to get the one utility.

    It's probably possible using XXCOPY but this program has more switches than you've had hot dinners!

    John

    Later... The ROBOCOPY "/CREATE" option does mostly what you want BUT also creates zero-byte files in the target directories corresponding to those which exist in the source directories.
    As in ROBOCOPY sourcepath targetpath /CREATE /S
    This only uses MFT space, and you could then delete all those zero-byte files using
    DEL /s /q targetpath*.*
    A little testing is called for, I think!
    (...which I've just done, and only had problems with some files (like THUMBS.DB) with peculiar combinations of attributes. The average Archive, or no, attributes work fine)
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  3. #3
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copy folder structure not contents? (Windows XP Pro)

    ...and when you do find a solution, create a blank 'default' version that you can simply copy again for use in 12 months time!

    BTW, is there some common standard structure? e.g.:

    Company
    +-- January
    +-- Folder 1
    +-- Folder 2
    +-- Folder 3
    +--Folder 4
    +-- February
    +-- Folder 1
    +-- Folder 2
    +-- Folder 3
    +-- Folder 4
    etc...

    If so, perhaps you could create one month plus sub-folders, copy, paste and rename the month, and so on to create all months, then move the whole lot to a 'company' folder. Copy and paste and rename as necessary.

  4. #4
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Copy folder structure not contents? (Windows XP Pro)

    This worked for me:
    <pre>xcopy /t /e c:PhotosUnedited-A1 c:Photoszzzztest</pre>

    Not that I checked every single folder... <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  5. #5
    New Lounger
    Join Date
    Apr 2004
    Location
    Las Vegas, Nevada
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Copy folder structure not contents? (Windows X

    <table border=1><td>This worked for me:
    xcopy /t /e c:PhotosUnedited-A1 c:Photoszzzztest
    Not that I checked every single folder...</td></table>
    Aargh! The old DOS "XCOPY /e" trick! You beat me to it!
    Any filespec will do, if it doesn't exist in the directories. I used to use curse words. <img src=/S/clown.gif border=0 alt=clown width=15 height=15>

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Copy folder structure not contents? (Windows X

    Not quite, it's the "XCOPY /T /E" feature!

    Nowadays, with ROBOCOPY and XXCOPY being available, there's very little I would use XCOPY for...

    John

    (That's my excuse for not suggesting it initially!)
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •