Jump to content

How to delete favourites ?


Recommended Posts

Hello,

I'm looking for a way to avoid the installation of the favourites installed by Windows (MSN, Radio stations) and in the 'Links' subfolder (Hotmail, Windows media etc.). I thought about making a BATCH but these files are created in the username profile directory so after the installation.

Any ideas ?

Thank you.

Link to comment
Share on other sites


Alright, i think i just found out. I added this in my runonce.bat:

echo Suppressions des favoris inutiles

del /f /s /a C:\Docume~1\%username%\Favoris\*.url

del /f /s /a C:\Docume~1\%username%\Favoris\Liens\P*.url

del /f /s /a C:\Docume~1\%username%\Favoris\Liens\W*.url

It should work ... ;)

Link to comment
Share on other sites

I think you should use :

DEL /F /S /Q %UserProfile%\Favoris\*.url

this should work fine.

it should also delete shortcuts in directories LIENS, etc...because /S delete inside directories.

type DEL /? in a MS-DOS box (invite de commande) to see the parameters

Link to comment
Share on other sites

Yes, in your winnt.sif.

For adding favorites, add a [FavoritesEx] section. For example :

[FavoritesEx]Title1 = "Google.url"

Url1 = "http://www.google.com"

For adding favorites in the Links subdirectory, add a section. For example :

Link to comment
Share on other sites

@Lucius Snow (Must be a fan of Early Edition Eh!  :thumbup )

I have used the [FavoritesEx] section in winnt.sif but left it blank and it has not installed the default favs, Then copied my favs over at first logon.

(Lucius Snow LOL i really like the cat :D)

i'm also trying to delete my favourites but the del command don't work if applied to early, i'll try that [FavoritesEx] :P

Link to comment
Share on other sites

  • 1 month later...

big poppa pump! That is exactly what I am trying to do! How did you do this? I figured out how to completely delete the favorites folder, but I also would like to get rid of the Shared folders in AllUsersProfile and the user profile folders. I also am trying to completely remove the userprofile and default user start menu and use the allusers startmenu. The code I use is below, I currently have it in a cmd file. What would I put to run it as a runonce? And lastly, will it delete itself so it won't run again, or be present on the computer? Thanks a million, you found what I needed!

RD /S /Q "%AllUsersProfile%\Documents\Shared Music"
RD /S /Q "%AllUsersProfile%\Documents\Shared Pictures"
RD /S /Q "%AllUsersProfile%\Documents\Shared Video"

RD /S /Q "%UserProfile%\My Documents\My Music"
RD /S /Q "%UserProfile%\My Documents\My Pictures\Sample Pictures"
RD /S /Q "%UserProfile%\Favorites"
DEL "%UserProfile%\Start Menu\Programs\Accessories\Address Book.lnk"

DEL "%DefaultUser%\Start Menu\Programs\Remote Assistance.lnk"
DEL "%DefaultUser%\Start Menu\Programs\Windows Media Player.lnk"

RD /S /Q "%UserProfile%\Start Menu\Programs\Accessories"
RD /S /Q "%DefaultUserProfile%\Start Menu\Programs\Accessories"

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