Jump to content
Macro Express Forums

Can't delete shortcuts


KFOR777

Recommended Posts

Hello,

 

I'm working in Windows 7.

I'm trying to delete some shortcuts using the Delete File command.

When I browse to the shortcut link it automatically thinks that I want to delete the actual file that the shortcut points to and not the shortcut itself.

So I went into the Delete File command and changed it to point to the shortcut using the .lnk extension.

Although it appears to point to that shortcut, when you run the macro it doesn't delete anything.

Is there a special trick to deleting shortcuts?

Link to comment
Share on other sites

Where are the shortcuts? Windows 7 makes it difficult to delete files it determines should be protected. Could this be what you are seeing?

 

No, these are shortcuts in the Start Menu (C:\ProgramData\Microsoft\Windows\Start Menu\Programs).

They can easily be deleted just by right clicking and selecting delete.

In fact, I have the macro set up now to do it that way and it works fine, but I was trying to use the delete file command instead.

You can recreate this issue by creating a blank text file and then create a shortcut to it. Try to get the delete file command to delete the shortcut, not the text file.

It doesn't work in XP either. Maybe I'm just not doing it the right way.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...