Script works like a charm.. only thing is it doesnt list shortcuts that are in "all users"

so when i have word and exel for example in all users and not on the current desktop.. the script will place two new shortcuts so my current desktop then has double word and exel shortcuts.

so what iam trying to do now is listing two directorys with dirlist and put them in one array..

what would be the best way to do this?

1) use one dirlist command to list two directories if possible so the output would be in one array directly
2) use two dirlist commands and concat the output in one array

i tried option one but i didnt came further. now trying option two but i cant find some material on concatinating arrays on the forum perhaps someone can point me in the right direction?

cheers.
example.
 Code:
$sublist1 = DirList('C:\Documents and Settings\%username%\Bureaublad\*.lnk', 2)  
$sublist2 = DirList('C:\Documents and Settings\All Users\Bureaublad*.lnk', 2)

$List = $sublist1.$sublist2


Edited by henkie32 (2008-02-08 03:43 PM)