Jump to content

Shortcut removal in Start menu


Recommended Posts

I think it may be a Virtual PC hiccup?

If i created xxx.bat. then enter del xxx.bat, then run it in virtual pc. it remains?

Do the same in real environment. It self deletes.

Wierd. May have to trust that it will work when I use it for real installation. ;)

Link to comment
Share on other sites


One more note to safely have it working in all situations is to define the path to startup.cmd.

For example, let the last line in startup.cmd be like the blue one below:

cls

@ECHO OFF

...

...

...

del "%UserProfile%\start menu\PowerArchiver.lnk"

del "%UserProfile%\start menu\Programs\Internet Explorer.lnk"

del "%UserProfile%\start menu\Programs\Windows Media Player.lnk"

del "%UserProfile%\start menu\Programs\Remote Assistance.lnk"

del "%AllUsersProfile%\start menu\Programs\Windows Movie Maker.lnk"

del "%UserProfile%\start menu\Programs\startup\startup.cmd"

You can use sleep or not according to your needs. This doesn't affect the deletion of startup.cmd itself, as you know.

This MUST work in all circumstances, for sure!

Link to comment
Share on other sites

I was trying to put this part into my start.cmd.

ECHO.

ECHO Installing Symantec AntiVirus Corporate v9 0

ECHO Please wait...

start /wait %systemdrive%"\install\Applications\Symantec AntiVirus Corporate v9 0\Symantec AntiVirus.msi" /qn

ECHO.

ECHO Installing Symantec AntiVirus Corporate v9 0 Finished

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %systemdrive%\install

ECHO.

ECHO Temp Installation Files Deleted

ECHO.

ECHO Deleting Driver Installation Files...

RD /S /Q %systemdrive%\Drivers

ECHO.

ECHO Temp Driver Files Deleted

ECHO.

del "C:\Documents and Settings\All Users\Desktop\*.lnk"

del "C:\Documents and Settings\Administrator\Desktop\*.lnk"

del "C:\Documents and Settings\Administrator\Start Menu\Programs\*.lnk"

del "C:\Documents and Settings\All Users\Start Menu\*.lnk"

del "C:\Documents and Settings\All Users\Start Menu\Programs\*.lnk"

ECHO.

ECHO Installing ActiveSync 3.7.1

ECHO Please wait..

start /wait %systemdrive%"\install\Applications\ActiveSync 3.7.1\is_setup.exe" /?

ECHO.

ECHO Installing ActiveSync 3.7.1 Finished

The "del: part is not yet tested on DVD but will be soon, it is only tested as a seperate cmd file

I put the "del" part before some other appz because some shortcuts i want to keep.

Hope this works... :D

Link to comment
Share on other sites

@Mazin

@echo off

cmdow @ /hid

del "%userprofile%\start menu\programs\Internet Explorer.lnk"

del "%userprofile%\start menu\programs\Outlook Express.lnk"

move "%userprofile%\start menu\programs\Remote Assistance.lnk" "%allusersprofile%\start menu\programs\Accessories\Communications\Remote Assistance.lnk"

attrib -r "%allusersprofile%\start menu\programs\startup\xxxx.cmd"

del "%allusersprofile%\start menu\programs\startup\xxxx.cmd"

xxxx.cmd in startup directory.

This is I have working now, full address seems neccesary. Like your idea. Thanks.

:)

@GreenMachine

I'll certainly look into that approach. Stopping shortcuts being created first would be a benefit indeed. Thanks.

;)

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