Announcement

Collapse
No announcement yet.

merge two folder structures

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • merge two folder structures

    I need a script to merge two folder structures:
    folder structure 1:

    \\192.168.1.1\db\Docs
    A 001
    A 002
    A 003
    etc

    folder structure 2:
    \\192.168.1.1\db\RAW
    A 001
    A 002
    A 003
    etc

    what i need to do is:
    1. under \RAW\a 001 create subfolder Docs
    2 then move folder \docs\a 001 to \RAW\Docs\A 001
    and the same thing to the remaining folders

    Any one can help? Where do i start?

  • #2
    Re: merge two folder structures

    What language are you using?
    Gareth Howells

    BSc (Hons), MBCS, MCP, MCDST, ICCE

    Any advice is given in good faith and without warranty.

    Please give reputation points if somebody has helped you.

    "For by now I could have stretched out my hand and struck you and your people with a plague that would have wiped you off the Earth." (Exodus 9:15) - I could kill you with my thumb.

    "Everything that lives and moves will be food for you." (Genesis 9:3) - For every animal you don't eat, I'm going to eat three.

    Comment


    • #3
      Re: merge two folder structures

      CTRL + X then CTRL + V should do the trick

      I presume it is moving more than one structure or there would be little need for a script
      Tom Jones
      MCT, MCSE (2000:Security & 2003), MCSA:Security & Messaging, MCDBA, MCDST, MCITP(EA, EMA, SA, EDA, ES, CS), MCTS, MCP, Sec+
      PhD, MSc, FIAP, MIITT
      IT Trainer / Consultant
      Ossian Ltd
      Scotland

      ** Remember to give credit where credit is due and leave reputation points where appropriate **

      Comment


      • #4
        Re: merge two folder structures

        Originally posted by johnylee View Post
        what i need to do is:
        1. under \RAW\a 001 create subfolder Docs
        2. then move folder \docs\a 001 to \RAW\Docs\A 001
        Do you mean (A),
        1. under \RAW\a 001 create subfolder Docs
        2. then move "\\192.168.1.1\db\Docs\A 001\*.*" to "\RAW\a 001\Docs\"
        3. delete the empty folder \\192.168.1.1\db\Docs\A 001


        Or (B),
        1. under \RAW create subfolder Docs
        2. then move folder "\\192.168.1.1\db\docs\A 001" to "\RAW\Docs\a 001"


        ?

        \Rems

        This posting is provided "AS IS" with no warranties, and confers no rights.

        __________________

        ** Remember to give credit where credit's due **
        and leave Reputation Points for meaningful posts

        Comment

        Working...
        X