Jump to content

cleanup with sp2


Recommended Posts

Hi

Tried removing shortcuts from desktop and start menu/programs etc

These are my shortcuts

ECHO.

ECHO Removing useless shortcuts from Program Menu...

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Yahoo! Messenger.lnk"

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

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\MSN Messenger 6.2.lnk"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Windows Explorer

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Program Compatibility Wizard.Ink"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Address Book.Ink"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\System Tools

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Communications

DEL "%ALLUSERSPROFILE%\Start Menu\New Office Document.lnk"

DEL "%ALLUSERSPROFILE%\Start Menu\Open Office Document.lnk"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\WinRAR.lnk"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Winamp.lnk"

could someone help me please

Link to comment
Share on other sites


What exactly is your problem, i'm guessing that the shortcuts are not removed?!?

It looks ok, from here, but the quickest way to know if it works is to run it manually at the end and if it does work then place at of you GuiRunOnce command or at end of you RunOnceEx.cmd file as i and many others do.

Link to comment
Share on other sites

@oildman

yes there not removing did in sp1 but not with sp2!!

yes have placed it with the GuiRunOnce command

Done changes to the clean up cmd but seems to not remove any of my shortcuts i am not sure what could be wrong everything else is working except the clean up...

Link to comment
Share on other sites

ECHO.

ECHO Restarting the PC in 1 minute...

shutdown.exe -r -f -t 300 -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!"

I think this should be at the end not the begging ;)

Link to comment
Share on other sites

ECHO.

ECHO Restarting the PC in 1 minute...

shutdown.exe -r -f -t 300 -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!"

I think this should be at the end not the begging ;)

No, Windows will still allow anything to run when a shutdown is executed, for a time span of 300 seconds.

Link to comment
Share on other sites

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Yahoo! Messenger.lnk"

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

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\MSN Messenger 6.2.lnk"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Windows Explorer

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Program Compatibility Wizard.Ink"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Address Book.Ink"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\System Tools

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Accessories\Communications

DEL "%ALLUSERSPROFILE%\Start Menu\New Office Document.lnk"

DEL "%ALLUSERSPROFILE%\Start Menu\Open Office Document.lnk"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\WinRAR.lnk"

DEL "%ALLUSERSPROFILE%\Start Menu\Programs\Winamp.lnk"

Please check your work carefully. Most of it is wrong. Sorry!

WinRAR isn't a link.

Winamp isn't a link.

Program Compatibility Wizard.Ink

Address Book.Ink

Some shortcuts are in %USERSPROFILE% not in %ALLUSERSPROFILE%

Windows Explorer isn't a folder.

And so on....

Plus, a bare DEL can delete a single file(s) but not a folder!

Link to comment
Share on other sites

Mange to filter most of the shortcuts now Thanks!!

@Aaron yes tried both at begining and end no difference

@mazin

So its possible to rid the folders .....not using the DEL....

what statement do i need to rid folders

cheers

Link to comment
Share on other sites

to delete a folder, e.g.

RD /S /Q "%systemroot%\Web\Wallpaper\"

to delete files within a folder, e.g.

DEL %systemroot%\system32\L3codeca.acm /Q

"/Q" does not ask for confirmation!

-------------------------

Remember "Q"? :D

q.jpg

Link to comment
Share on other sites

Would this remove the folders i dont need

RD /S /Q "%USERSPROFILE%\Start Menu\Programs\Winamp

RD /S /Q "%USERSPROFILE%\Start Menu\Programs\WinRAR

Would this delete explorer in Accessories or would it cause more problems

RD /S /Q"%SystemRoot\explorer.exe

thanks for the help guys

im greatful for your help

cheers

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