Jump to content

Recommended Posts

Posted

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


Posted

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"

Posted

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?

Posted

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

Posted

Oh, one other thing, is

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

The same as x:\documents and settings\all users\application data

  • 2 weeks later...
Posted

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

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

Posted

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.

  • 1 year later...
Posted

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"

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

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