Ahhh... hang on... I think I may see what the problem is.

The sample that I have given you looks only in "Desktop" for All Users and the logged in user.

If you want to enumerate all the directories, change the udfGetTargets() UDF to use DirList() instead of Dir() and pass the parent directory rather than the Desktop directory.

Hang on...give me two minutes and I'll amend it for you...


Edited by Richard H. (2008-02-08 04:49 PM)