Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating /removing shortcuts ( on desktop ) programatically

Status
Not open for further replies.

ferrari123

Programmer
Feb 9, 2003
22
0
0
IN
Hi ,

One of the proj. requirement need is to delete the shortcuts from desktop. Has anybody got any idea how to do it programatically ??

Thanks in advance.
 
shortcuts are ordinary files with some information and the desktop is a folder. Find this folder and remove theese files. Ion Filipski
1c.bmp


filipski@excite.com
 
Hi IonFilipski,
Thanks for your suggestion. i could delete that shortcut treating as a file. Now the question is what makes it different from normal files?.

Question came because there can be scenario when user renames it and still we will have to delete it. Is there any way to find out that this shortcut's properties ??? So that we can compare those and
delete it. ( like link to which it is pointing ,parameters etc.)


 
Hi Ferrari,

what you're looking for is the IShellLink interface. Search for "IShellLink" in the MSDN Library to find all the answers to your question. Marcel
 
Hi Mkuiper,

Yes. that's the one. Luckily i got the code also.


thanks
~ Rudresh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top