Delete desktop icon

(imported topic written by jnovak91)

Hi,

I am trying to delete the Adobe Reader Desktop icon that gets created after updating to the latest version. I have the following which I was going to append to lastet Adobe Fixlet:

//Delete the desktop icon left behind from Adobe

delete {files whose (name of it equals “Adobe Reader 9.lnk”) of folder (value of variable “allusersprofile” of environment & “\Desktop”)}

Q&A Works fine

Q: exists files whose (name of it equals “Adobe Reader 9.lnk” ) of folder (value of variable “allusersprofile” of environment & “\Desktop”)

A: True

Log file says:

Command failed (File not found) delete “Adobe Reader 9.lnk” “” “” “” “” (fixlet 12912)

Not sure what I am missing here or where I am going wrong. Any help is appreciated. Thanks in advance.

Jason

(imported comment written by BenKus)

Try this:

delete “{pathname of files whose (name of it equals “Adobe Reader 9.lnk”) of folder (value of variable “allusersprofile” of environment & “\Desktop”)}”

Ben

(imported comment written by jnovak91)

that worked. thank you.

A post was split to a new topic: Help deleting a specific desktop icon