thx for your replies so far...

it still doesnt work the way i would like it to...

im using this code:
 Code:
Dim $List	; array of LNK files
Dim $Lnk	; array enumerator
Dim $Path	; target path

$List = DirList('C:\Documents and Settings\Thijs\Bureaublad\*.lnk', 2)

For Each $Lnk in $List
  'Processing ' $Lnk ?
  $Path = GetShortCutProperties($Lnk, 'Path')
  'Path: ' $Path ?

$fExcel = 1
Select
 Case InStr($Path, 'xlicons')        ; found - don't need to install
  $fExcel = 0
EndSelect
Next

; Should shortcut be defined
If $fExcel
  del c:\test\test1.txt
EndIf


The Script has some weird thingies

When i use 'word' in the instr it works fine having a [censored] of crap on my desktop.
when i use 'xlico' or 'ppt' in the intr it worke fine when exel is the only office shortcut on my desktop.. but when i place other office shortcuts on the desktop.. it sets the flag to 0. so i guess it cant find it?


what am i doing wrong?


Edited by henkie32 (2008-02-06 08:24 AM)