PDA

View Full Version : Delete shortcut?



NewsArchive
08-17-2005, 02:19 AM
Hi,

Is there a way to delete a shortcut that was previously placed on the
desktop? We have changed the name of the program and need to rename or
delete the previous desktop shortcut.

Thanks,

Tony Tetley
Professional Data Services, Inc.

NewsArchive
08-17-2005, 02:19 AM
Right click it?

Lynn Howard

NewsArchive
08-17-2005, 02:19 AM
Hi Tony,

I'm pretty sure I'm correct in saying that any shortcut is identified
as ShortcutName.LNK so you could use the SB5 script function "Get
Special folder path" to "CSIDL_DESKTOP" then use that with the SB5
script function "Delete Local File(s)" to remove it. You would
probably do this in the script somewhere before adding the new
shortcut.

Best Regards,
Geoff Spillane
Data Down Under

NewsArchive
08-17-2005, 02:19 AM
Hi Geoff,

Perfect! :)

Friedrich

--
Friedrich Linder
CEO, Lindersoft
www.lindersoft.com
1.954.252.3910

"point. click. ship" - that's SetupBuilder 5

NewsArchive
08-17-2005, 02:20 AM
Hi Geoff,

Thank you!

Tony

NewsArchive
08-17-2005, 02:20 AM
Two challenges, though...

SB allows you to specify whether a shortcut is put in an individual user's
profile or the All Users profile, which are different folders.

If the user renames the shortcut (say, changing 'Geoff's Super Wonderful
App' to 'Super App'), the LNK filename will change.

Jane

NewsArchive
08-17-2005, 02:20 AM
Hi Jane,

For the difficult to handle scenarios I'll refer you to the detailed
instructions provided by Lyn <vbg>

Best Regards,
Geoff Spillane
Data Down Under

NewsArchive
08-18-2005, 08:49 AM
Gosh, Thanks, Geoff !!!!
But I actually prefer the Delete key ;-)

Jane

NewsArchive
08-19-2005, 02:16 AM
You could also wait a few months or so for windows to say "Pardon me,
but did you know that there are unused icons yada yada yada"<g>

Jeff Slarve