ScriptSpot home

Get list of all subfolders

Report a problem
Community reviewsNo reviews yet.

Listing details

Legacy votes
1
Listing created
Posted by

Nevil Redfield(Nasser Merati)

Credited author: Nevil

More by this author

Description

-- How to get list of all sub folders in special path --

function GetAllSubDirs_fn MyDirectory =
(
temp = #();
s = 1;
folders = getDirectories (MyDirectory + "/*");
t = folders.count;
while s < t do
(
for i = s to t do (temp = getDirectories (folders[i]+"*");
for j = 1 to temp.count do folders[folders.count+1] = temp[j] );
s = t;
t = folders.count;
)
sort folders
return folders;
)
-- call the function whit a folder path --

GetAllSubDirs_fn("D:")

Comments (2)
REZA

Hi, why don't show complete

Hi, why doesn't it show the complete vmpp window in 2013max??(don't show material in vmpp window) I can't speak English fluently.

Reply to REZA
Nevil Redfield(Nasser Merati)

can you explain more

if you explain a little more, I`ll be able to help.

( if you cant explain in English do it in Persian or Turkish and send it to my email NevilArt@Gmail.Com )