mass folder creation, copying, etc.

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Cliftyman
Posts: 1
Joined: 05 Aug 2008 20:00

mass folder creation, copying, etc.

Post 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?

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post 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.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Re: mass folder creation, copying, etc.

Post 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.
Proud XYplorer Fanatic

Post Reply