Thank you Glenn for your advise on the file extension that help allot, after that I changed the code from
 Code:
$sToDelete= %userprofile% +"Application Data\Microsoft\Internet Explorer\Quick Launch\test1"

to
 Code:
$sToDelete= "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch\test1.lnk"

Then the script did its job.
BTW I have version 4.51 so the RD /s wont work but that was not necessary.




Edited by Solid (2009-03-23 10:32 AM)