Code:

;your line:
$wshshortcut($a_shortcuts[$Index],$a_targets[$index])
;correct line:
$=wshshortcut($a_shortcuts[$Index],$a_targets[$index])



Tho, usage of variables usually is used with a name to indicate usage, but since a lot of the aging ones here codes like gods, they like removing unessary letters 'n stuff =)

Code:

For Each $element In $a_shortcuts ;Why?
For $index=0 To UBound($a_shortcuts) ;increase $index value until it reaches the limit of array elements
If Exist ($a_shortcuts[$index]) = 0
$wshshortcut($a_shortcuts[Index],$a_targets[$index])
EndIf
Next
;missing a next here...



I don't se the reason to loop-a-loop it? What am I missing?


Edited by Björn (2006-09-11 02:30 PM)