Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9168619
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T15:40:05+00:00 2026-06-17T15:40:05+00:00

I created a shortcut (.lnk) file on the desktop using the IShellLink interface similar

  • 0

I created a shortcut (.lnk) file on the desktop using the IShellLink interface similar to the code described at the bottom of this page.

So my assumption was that to remove this shortcut I could simply call DeleteFile on the .lnk file, but evidently it is not enough… if I do that I get a remnant of the shortcut file that looks like this:

enter image description here

But what is interesting is that if I browse files in the desktop folder, say with Windows Explorer, the .lnk file is not actually there. What I see is some artifact on the desktop GUI surface.

Any idea how to remove a shortcut (the way Microsoft wants it done?)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T15:40:07+00:00Added an answer on June 17, 2026 at 3:40 pm

    OK, per suggestion above, here’s the API that needs to be called afterwards to refresh the shell:

    SHChangeNotify(SHCNE_DELETE, SHCNF_PATH | SHCNF_FLUSHNOWAIT, pDeletedFilePath, NULL);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to create a new shortcut link file using IShellLink and IPersistFIle interface.
I would like to create a shortcut on the desktop using VBScript code. I
This is the code that I'm using. The shortcut instead of point to $text
– ping www.google.com –t I have created a shortcut on desktop and typed this
How do you create an application shortcut (.lnk file) in C# or using the
How can I remove a desktop shortcut by Innosetup? It's created by previous version
Possible Duplicate: How do you create an application shortcut (.lnk file) in C# or
I have created a shortcut of my .exe file. I want add to '.exe'
In Qt I know you can create a shortcut (lnk) using the following method
Personally I hate auto-created desktop shortcut icons, but some folks seem to think that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.