DirPlus() returns an array of FSO(Fils System objects)

in our for each $f in $folders loop, lets say that $f.path would equal "V:\TX ALLIANCE Sorted Copy\Texas+Produce\From List #2" for one of the loops though our example. $source = "v:\"

Code:

$folder_path = split($f.path,$source)[1]



$folder_path would equal "TX ALLIANCE Sorted Copy\Texas+Produce\From List #2"

you do a ubound(split($folder_path),'\') and you get 2 letting us know that you have a folder that is 3 deep from the root of the source (remember start counting with 0 not 1).

Code:

0 1 2
"TX ALLIANCE Sorted Copy\Texas+Produce\From List #2"



Edited by Bryce (2005-11-04 07:45 PM)