BloodStalker Posted September 11, 2004 Share Posted September 11, 2004 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 More sharing options...
BloodStalker Posted September 11, 2004 Author Share Posted September 11, 2004 Does anyone know how I can delete this start menu shortcut using cleamup.cmd???? Link to comment Share on other sites More sharing options...
MHz Posted September 11, 2004 Share Posted September 11, 2004 Use this instead:Del "%allusersprofile%\Start Menu\Programs\X-Setup Pro.lnk" Link to comment Share on other sites More sharing options...
Mike_Wilson Posted September 11, 2004 Share Posted September 11, 2004 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 ShortcutExample is deleting the Windows Movie Maker shortcut in the start menuDEL "%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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now