Results 1 to 5 of 5
  1. #1
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    collapsed directory structure

    How do I copy files to a collapsed directory structure?

    (Without mindless Ctrl-A and dragging of fiels).

    I have just checked and re-checked the DOS XCOPY parameters, and even Patriquin's PCOPY utility. Using SWEEP.COM with the DOS MOVE does me no better.

    Every utility seems to want to preserve the directory structure, whereas I want to send all 63 files (from the source sub-tree) to a single directory.


    There's probably a way to do it, and I've walked right past it.

  2. #2
    Lounger
    Join Date
    Jan 2002
    Posts
    29
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: collapsed directory structure

    Archive the directory and subdirectories to a zip file using a utility like WinZip or Ontrack Powerdesk. Select the options to include subdirectories, but not to store paths. Then unzip the archive to your destination directory. Use no compression for fastest speed.

  3. #3
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: collapsed directory structure

    >Archive the directory and subdirectories to a zip file

    Yup, this'll do it, with the added security of being asked if I want to overwrite any duplicate file names.

    I take it you don't know of a "pure DOS" method?

    I find it strange that there's no easy way to collapse directories.

    I did get Sweeo.COM to do the job for me in the end.

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

    Re: collapsed directory structure

    Hey, Mr Batch Man - is this what you want <A target="_blank" HREF=http://www.ericphelps.com/batch/samples/alldirs.bat.txt>here</A>?

    >>
    :: This batch file will compile a list of all directories,
    :: change into each of the subdirectories, then run any
    :: command you pass it.

  5. #5
    Platinum Lounger
    Join Date
    Feb 2001
    Location
    Yilgarn region of Toronto, Ontario
    Posts
    5,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: collapsed directory structure

    >Hey, Mr Batch Man - is this what you want here?

    Thanks, Leif.

    Believe it or not, I was looking for a pure-DOS solution, most of all I was puzzled by my inability to get XCOPY32 to do what I wanted.

    I figured there ought to be a switch accompanying the /S switch (all subdirectories), such as /SF, which would mean "Search all source subdirectories, but write to a Flat directory structure.

    FWIW dear old Sweep.com (attached) might be more efficient at searching all sub directories.
    Attached Files Attached Files

Posting Permissions

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