Jump to content

Deleting Start Menu Shortcuts


Recommended Posts

Hey,

Well this is strange. Windows in not letting me delete:

DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"
DEL "%UserProfile%\Start Menu\Programs\Internet Explorer.lnk"
DEL "%UserProfile%\Start Menu\Programs\Outlook Express.lnk"
DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk"
DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"

For some odd reason. Of course after windows is installed I can run the cammands fine and they work. Thats what I dont get.

I do that in my unattended script on first login.

Gui run once points to applyTweaks.cmd which at the very end runs the above with a few others.

Which is strange because these for example are in the same script and remove fine:

@echo off

RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Games"
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\F-Prot Antivirus\Scan"
DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"
DEL "%UserProfile%\Start Menu\Programs\Remote Assistance.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"
DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"
DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"
DEL "%AllUsersProfile%\Desktop\F-Prot Antivirus.lnk"
RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"

EXIT

Also on the same same subject I can not get these to remove:

DEL "%UserProfile%\Favorites\Radio Station Guide.url"
DEL "%UserProfile%\Favorites\MSN.com.url"
DEL "%UserProfile%\Favorites\Links\Free Hotmail.url"
DEL "%UserProfile%\Favorites\Links\Windows.url"
DEL "%UserProfile%\Favorites\Links\Windows Marketplace.url"
DEL "%UserProfile%\Favorites\Links\Windows Media.url"
DEL "%UserProfile%\Favorites\Links\Customize Links.url"

Do I need to do it some how else with these for some reason?

Any help would be great but please try to explain since I am still learning all of this stuff.

Thanks,

Will

Link to comment
Share on other sites


It takes about a 5-10 seconds for the system to create those shortcuts. Your script is deleting them before the system even have a chance to create them.

Try slowing down your script with a ping test, or use a utility.

Ex:

PING 127.0.0.1 -n 9

DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"

DEL "%UserProfile%\Start Menu\Programs\Internet Explorer.lnk"

DEL "%UserProfile%\Start Menu\Programs\Outlook Express.lnk"

DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk"

DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Show Desktop.scf"

Link to comment
Share on other sites

I am having a similar problem removing items with my cleanup.cmd file

cmdow @ /HID
@echo off

copy %systemdrive%\Install\Quicklaunch\*.* "%userprofile%\Application Data\Microsoft\Internet Explorer\Quick Launch"

copy %systemdrive%\Install\menu\*.* "%userprofile%\Start Menu\Programs"

DEL "%AllUsersProfile%\Desktop\Kazaa Lite K++.lnk"
DEL "%userprofile%\Documents and Settings\User\Application Data\Microsoft\Internet Explorer\Quick Launch\Kazaa Lite K++.lnk"

shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"

RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\Install

EXIT

It will not delete the Quick Launch Kazaa lite link for some reason, but it will delete the Kazaa desktop link?

Link to comment
Share on other sites

thats cuz its wrong..

use this

"%AppData%\Microsoft\Internet Explorer\Quick Launch\Kazaa Lite K++.lnk"

EDIT: just so u know

%userprofile% = X:\Documents and Settings\<User>

%AppData% = X:\Documents and Settings\<user>\Application Data

X: being your systemdrive

Link to comment
Share on other sites

  • 2 weeks later...

Does anyone know how to remove Internet explorer link directly from Start Menu?

What I mean is, when you click the start menu there are 2 links on top of the start menu ie. Internet Explorer and e-mail client.

Or another way to remove these are start menu properties- customize start menu-General tab at the bottom there's a group "Show on start menu" were you can check/uncheck Internet and mail.

My question is, are there any registry tweaks to remove these?

I tried to find it myself with Advanced Registry Tracer but nothing found.

Thanks in advance

Link to comment
Share on other sites

Does anyone know how to remove Internet explorer link directly from Start Menu?

What I mean is, when you click the start menu there are 2 links on top of the start menu ie. Internet Explorer and e-mail client.

Or another way to remove these are start menu properties- customize start menu-General tab at the bottom there's a group "Show on start menu" were you can check/uncheck Internet and mail.

My question is, are there any registry tweaks to remove these?

I tried to find it myself with Advanced Registry Tracer but nothing found.

Thanks in advance

I'm looking for that too. Let me know if you find anything. Cheers.

Link to comment
Share on other sites

I think that you should be able to do these from your winnt.sif

Quote from deployment ref.chm;

[Components]

IEAccess = On/Off

On - Installs visible entry points to Internet Explorer.

Off - Does not install visible entry points to Internet Explorer.

OEAccess = On/Off

On - Installs visible entry points to Outlook Express.

Off - Does not install visible entry points to Outlook Express.

I may be wrong - this could just refer to "All Programs" shortcuts but I think they should do it.

Link to comment
Share on other sites

  • 1 year later...

add this toyour your start file

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"

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...