cancel
Showing results for 
Search instead for 
Did you mean: 

A skript to distribute 2 files to 400 diffrent folders

peeroo
Champ in-the-making
Champ in-the-making
Hello,

I need to copy 2 files in 400 diffrent folders in Alfresco. Manually this is very compley and I hope you can help me to write a short skript which do this.

Of course, the best option would be to copy only a link in this 400 Folders of this 2 files (each 2MB). But I couldnt find any option to do this in:

Alfresco Community v4.0.0
(b 3835) schema 5019
Spring Surf and Spring WebScripts - v1.0.0
(Release Candidate 2 915)


Iam a very beginner in writing java skripts (I gues alfresco needs js.). So it would be very great if you could help me here!

Thank you very much! If you need any answers dont hesitate to ask :-).

Best regards
Peeroo
1 REPLY 1

douglascrp
World-Class Innovator
World-Class Innovator
Hi.

He code needed to create the link is here http://forums.alfresco.com/comment/64742#comment-64742

You will have to write the code to get all the folders you want to have the link created in and then execute the code in that post.

To help you with the script development, I recommend you to try this addon https://github.com/share-extras/js-console

But be cautious using jsconsole, because you can make mistakes using it…

I hope it help