Lucius Snow Posted August 20, 2004 Share Posted August 20, 2004 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 More sharing options...
Lucius Snow Posted August 20, 2004 Author Share Posted August 20, 2004 Alright, i think i just found out. I added this in my runonce.bat:echo Suppressions des favoris inutilesdel /f /s /a C:\Docume~1\%username%\Favoris\*.urldel /f /s /a C:\Docume~1\%username%\Favoris\Liens\P*.urldel /f /s /a C:\Docume~1\%username%\Favoris\Liens\W*.urlIt should work ... Link to comment Share on other sites More sharing options...
r0sWell Posted August 20, 2004 Share Posted August 20, 2004 I think you should use :DEL /F /S /Q %UserProfile%\Favoris\*.urlthis 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 More sharing options...
bilko Posted August 22, 2004 Share Posted August 22, 2004 hi sorry if this is a dumb question but i am new to the forums, so if we can delete web favorates can we do it in reverse add add some Link to comment Share on other sites More sharing options...
Lucius Snow Posted August 22, 2004 Author Share Posted August 22, 2004 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 :Quick_Link_1_Name = "Hotmail.url"Quick_Link_1 = "http://www.microsoft.com/isapi/redir.dll?prd=ie&ar=hotmail" Link to comment Share on other sites More sharing options...
Moezy Posted August 22, 2004 Share Posted August 22, 2004 How do you add your own sub-directory? Link to comment Share on other sites More sharing options...
Lucius Snow Posted August 22, 2004 Author Share Posted August 22, 2004 How do you add your own sub-directory?I don't know this Link to comment Share on other sites More sharing options...
benners Posted August 22, 2004 Share Posted August 22, 2004 @Lucius Snow (Must be a fan of Early Edition Eh! )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. Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted August 22, 2004 Share Posted August 22, 2004 @Lucius Snow (Must be a fan of Early Edition Eh! )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 )i'm also trying to delete my favourites but the del command don't work if applied to early, i'll try that [FavoritesEx] Link to comment Share on other sites More sharing options...
Lucius Snow Posted August 22, 2004 Author Share Posted August 22, 2004 Link to comment Share on other sites More sharing options...
benners Posted August 22, 2004 Share Posted August 22, 2004 Just a note you will need to add the code below if you are using the [FavouritesEx] [Branding]BrandIEUsingUnattended = Yes you prolly are but just a heads up incase Link to comment Share on other sites More sharing options...
nolookingca Posted September 23, 2004 Share Posted September 23, 2004 thanks! Link to comment Share on other sites More sharing options...
big poppa pump Posted September 23, 2004 Share Posted September 23, 2004 I remove all the default favorites on the 2nd boot after the first runonceex (inf file) has completed with a second runonceex (inf file) imported from the first runonceex! Link to comment Share on other sites More sharing options...
scorpy Posted September 23, 2004 Share Posted September 23, 2004 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 More sharing options...
scorpy Posted September 24, 2004 Share Posted September 24, 2004 bump! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now