Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

cleanup with sp2

Featured Replies

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


DEL without any additional arguments will ask for confirmation before deleting something. Run del /? from the command line to see additional options.

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.

I always use these arguments: /f /q

e.g.:

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

  • Author

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

  • Author

Heres my clean up

i may have been confused with RunOnceEx.cmd and my start.cmd

cleanup.txt

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 ;)

Try this link, because i notice your using literal paths and you don't need to be:

Delete shortcuts

Also, t 300 isn't 1 minute, i use t 60 for one minute which is 60 seconds.

Your doing 300 seconds which is 5 mins.

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.

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!

  • Author

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

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

Try this link, because i notice your using literal paths and you don't need to be:

Delete shortcuts

@farte

Follow that link.

  • Author

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

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.