Author Topic: Moving Folders  (Read 4438 times)

0 Members and 1 Guest are viewing this topic.

irneb

  • Water Moccasin
  • Posts: 1794
  • ACad R9-2016, Revit Arch 6-2016
Re: Moving Folders
« Reply #15 on: August 14, 2012, 12:04:35 PM »
why not use a file manager (FAR or alike)?
X2 for that one! It's like the old Norton Commander on steroids! On Linux I use Krusader ... much the same (only more of a GUI instead of text).

But methinks the OP's problem is he's got a set of folders like this:
Code: [Select]
X:\Project1
X:\Project1\Archive
X:\Project2
X:\Project2\Archive
X:\Project2\Area1
X:\Project2\Area1\Archive
X:\Project2\Area2
X:\Project2\Area3
X:\Project2\Area3\Archive
And then he wants to move those folders to another drive, yet keep all the same paths:
Code: [Select]
Z:\Project1\Archive
Z:\Project2\Archive
Z:\Project2\Area1\Archive
Z:\Project2\Area3\Archive
Omitting any paths which don't have Archive somewhere in their list of folders.

So it needs something which recreates full paths - just leaving the parent folders empty. And only moves the Archive folder (with its contents and subfolders) to the new drive.

IMO this sounds like a job for a bat/cmd script or as others have pointed out RoboCopy can do this for you.

What I'm a bit concerned about is the mention of path-names being too long. The above won't fix any of that.
Common sense - the curse in disguise. Because if you have it, you have to live with those that don't.

cmwade77

  • Swamp Rat
  • Posts: 1443
Re: Moving Folders
« Reply #16 on: August 14, 2012, 12:56:45 PM »
This is exactly the type of scenario that ROBOCOPY was designed for.
x2

Code: [Select]
Robocopy.exe "H:\Projects\Small Jobs\Archived" "T:\Projects\Small Jobs\Archived" /E /V /NP /Z /R:0 /W:0 /XD "*Archive"
k.
Wouldn't this exclude any directories that have the word Archive within them?

But I think that pointed me in the right direction, I believe what I actually want is:
Code: [Select]
Robocopy.exe "\\befilesvr01\H Drive\Projects" "\\jtongson-pc\ARCHIVE2011\H Drive\Projects" archive* /move /E /NP /Z /R:0 /W:0
« Last Edit: August 14, 2012, 01:08:46 PM by cmwade77 »