Page 1 of 1

mass folder creation, copying, etc.

Posted: 05 Aug 2008 20:03
by Cliftyman
I am the IT Admin at an accounting firm. We continue to use windows folder structure and Windows Explorer instead of going to a document management system (like Docsopen).

Problem is we need the ability to do a couple of things...

1. Have a button on a toolbar of one of our file structure admins that when pressed could create a new folder with a predefined structure (hierarchy)

2. Be able to copy a whole set of folders to multiple folders

Will the scripting in XYplorer do this?

Posted: 05 Aug 2008 20:14
by j_c_hallgren
Hi and welcome to the XY forums!

I'll toss out this wiki page as someplace to look for a solution that may suit your needs:
New Items
See if that will handle it, ok?

And yes, I do believe scripting would help also, but that's not yet my area of expertise so I'll defer to jacky or others who've become our scripting geniuses.

Re: mass folder creation, copying, etc.

Posted: 05 Aug 2008 20:40
by jacky
Cliftyman wrote:1. Have a button on a toolbar of one of our file structure admins that when pressed could create a new folder with a predefined structure (hierarchy)
There's currently no way to do that from Toolbar, but as jc said it can be done using the New Items features. An item from that menu cannot be used directly from scripting as it doesn't have a command id (for obvious reasons), but using scripting it'd be easy enough to simply do something like this:

Code: Select all

input $name, "Enter the name of the new folder to create";
 copyto "<curpath>\$name", "NewItems\Folder\*";
That way it "duplicates" the New Items feature, using the same source, so one can use both ways to get the same result, and updating the folder in NewItems will affect both methods (New Items & script) at the same time!

If you want to avoid the popup asking about the non-existing folder (from the copy operation) you can simply use this instead:

Code: Select all

input $name, "Enter the name of the new folder to create";
 new "<curpath>\$name", dir;
 copyto "<curpath>\$name", "NewItems\Folder\*";
Cliftyman wrote:2. Be able to copy a whole set of folders to multiple folders
Sure, nothing easier! See command copyto for more on how to do this, and find out more about Scripting here.