Jump to content

Deleting a Start Menu Shortcut


Recommended Posts

Hi, there I want to delete a Start Menu Shortcut using my cleanup.cmd file. Every bit of my cleanup.cmd file works, except the part I included to delete the shortcut. Could someone tell me if I am deleting it right. If I am not could you please tell me the appropriate way to delete it using my cleanup.cmd file. Here is the section from my cleanup.cmd file:

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\X-Setup Pro"

This is a start menu shortcut.

Link to comment
Share on other sites


To delete items from the startmenu there are two ways one in which to delete a shortcut on its own and the second being a sub folder with shortcuts in it.

Single Shortcut

Example is deleting the Windows Movie Maker shortcut in the start menu

DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"

Shortcut in Folder (wanting to delete whole folder)

Example is deleting the K-Lite Codec folder from my start menu after I have silently installed it.

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\K-Lite Codec Pack"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...