Then you will need to use the DIR function and enumerate all files/folder. Detect a folder by looking at GETFDILEATTR() & 16, do an IF EXIST('*portal*.lnk') and if true do an DEL '*portal*.lnk', then move on to the next folder /subfolder.

Take a look at the DIR UDFs that are posted in the UDF forum or take a look at the CleanTempFiles() UDF which would also do what you want.
_________________________
There are two types of vessels, submarines and targets.