mooms Posted September 6, 2008 Posted September 6, 2008 (edited) Hello MSFN fellows members.I have setup a batch file (.bat) that i run in an autoexecutable winrar archive on the first boot of my unattended windows XP .I made this to apply some registry tweaks and to get rid of the unwanted shortcuts made by the aplications installed at T-13.here is the code @echo offregedit /s tweaks.regDEL "%AllUsersProfile%\Menu D'marrer\Microsoft Update.lnk"DEL "%AllUsersProfile%\Bureau\VLC media player.lnk"DEL "%AllUsersProfile%\Bureau\Media Player Classic.lnk"DEL "%AllUsersProfile%\Bureau\Mozilla Thunderbird.lnk"DEL "%AllUsersProfile%\Bureau\Mozilla Firefox.lnk"DEL "%UserProfile%\Menu D'marrer\Programmes\Assistance . distance.lnk"DEL "%UserProfile%\Menu D'marrer\eBay.lnk"DEL "%SystemRoot%\system32\config\systemprofile\Menu D'marrer\eBay.lnk"DEL "%UserProfile%\Bureau\CCleaner.lnk"DEL "%UserProfile%\Bureau\Foxit Reader.lnk"DEL "%UserProfile%\Bureau\ImgBurn.lnk"exitThe first trick was to convert ansi to oem (it's a french Windows XP); all is working well except these three:DEL "%UserProfile%\Menu D'marrer\Programmes\Assistance . distance.lnk"DEL "%UserProfile%\Menu D'marrer\eBay.lnk"DEL "%SystemRoot%\system32\config\systemprofile\Menu D'marrer\eBay.lnkthe last two are created by unlocker addon, and i absolutely want to get rid of it.If anyone have a solution it make me happy Edited September 7, 2008 by mooms
Yzöwl Posted September 6, 2008 Posted September 6, 2008 Without seeing your actual file, we cannot be sure if the error is/is not with your DOS/OEM conversion.Here's a copy of what you've got in that file, produced on my system:@ECHO offRegedit /s tweaks.regDEL "%AllUsersProfile%\Menu D‚marrer\Microsoft Update.lnk"DEL "%AllUsersProfile%\Bureau\VLC media player.lnk"DEL "%AllUsersProfile%\Bureau\Media Player Classic.lnk"DEL "%AllUsersProfile%\Bureau\Mozilla Thunderbird.lnk"DEL "%AllUsersProfile%\Bureau\Mozilla Firefox.lnk"DEL "%UserProfile%\Menu D‚marrer\Programmes\Assistance … distance.lnk"DEL "%UserProfile%\Menu D‚marrer\eBay.lnk"DEL "%SystemRoot%\system32\config\systemprofile\Menu D‚marrer\eBay.lnk"DEL "%UserProfile%\Bureau\CCleaner.lnk"DEL "%UserProfile%\Bureau\Foxit Reader.lnk"DEL "%UserProfile%\Bureau\ImgBurn.lnk"EXITDue to potential problems with Browsers and software, I've attached it too!Try it and let us know how it goes.mooms.zip
mooms Posted September 6, 2008 Author Posted September 6, 2008 Thank you Yzöwl; the eBay shortcut is gone! the remote desktop is not removed, but i can lived with it i attached my original reg.bat so you can see the differences ( ' instead of , for me)reg.zip
Yzöwl Posted September 6, 2008 Posted September 6, 2008 I've re-uploaded it, and fixed the posted code too with the correction for your remote desktop error!I hope it helps.
TranceEnergy Posted September 6, 2008 Posted September 6, 2008 (edited) ..the remote desktop is not removed, but i can lived with it ..from one of my batches:Rem Remotepg.dll unregging this removes the Remote tab on system properties (my computer if u will)RegSvr32 /u /s %windir%\system32\remotepg.dll Edited September 6, 2008 by TranceEnergy
mooms Posted September 7, 2008 Author Posted September 7, 2008 Thank you again Yzöwl; the batch is now perfect Thank you too TranceEnergy, i've added your command it's even better ! B)
TranceEnergy Posted September 7, 2008 Posted September 7, 2008 There's nothing like getting people happy =) I'd insert a cheers smiley right about here if i had one =)
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