Page 1 of 1

Folder loop ?

Posted: Fri Jun 02, 2006 1:44 am
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 :)

Folder loop ?

Posted: Sat Jun 03, 2006 11:16 pm
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.