Folder loop ?

Discuss RoboTask here
Post Reply
steph@vds
Posts: 46
Joined: Tue Nov 29, 2005 11:27 pm
Location: France

Folder loop ?

Post by steph@vds »

Hi everybody,

I wonder how to create a "folder loop".
I want to return to variables {currentfoldername} and
{currentfoldersize} the name and size of a serie of folder contained in
a main folder.

I tried to do this with "Search for files" and "file loop" (with the option Folders only). No success.

My purpose is to automatically list all the folders in a main one to
verify that the total size does not exceed 38Go, to create labels for
my DLT cartridges and so on.

Thanks in advance for your ideas.
Bye.
steph@vds

P.S : I saw the post of pathfinder but it seems very complex to me to
create such a script. I guess that there is a trick in Robotask itself
to do such a task but I didn't find it yet :)
Oleg
Site Admin
Posts: 3201
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Folder loop ?

Post by Oleg »

I recommend you to use the Basic script from this example. It is not difficult.
You have to assign to variable {Folder_To_Calc} name of necessary folder and run the script. After executing the script read file count and total size from {FileCount} and {TotalSize} variables.

Calculating of folder size can take very long time. Probably we'll add such system variable or action.
Last edited by Oleg on Sun Jun 04, 2006 3:18 am, edited 1 time in total.
Post Reply