thx, i changed the script to:

$List = DirList("C:\Documents and Settings\Thijs\Bureaublad")
For each $lnk in $list
$Path = GetShortCutProperties($lnk,"Path")
If Instr($path,"notes.exe")
del c:\test\test1
Else
del c:\test\test2
EndIf
Next

so when test1 is delled, the script finds a link containing lotus.exe

But i cant get this to work.. i got a shortcut on my desktop wich holds:
C:\Lotus\Notes\notes.exe

so i let the script look for notes.exe.. it doesnt seem to find it

what am i doing wrong?