Jump to content

Recommended Posts

Posted (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 off
regedit /s tweaks.reg
DEL "%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"
exit

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

the 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 :hello:

Edited by mooms

Posted

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 off
Regedit /s tweaks.reg
DEL "%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"
EXIT

Due to potential problems with Browsers and software, I've attached it too!

Try it and let us know how it goes.

mooms.zip

Posted

Thank you Yzöwl; the eBay shortcut is gone! :thumbup

the remote desktop is not removed, but i can lived with it :sneaky:

i attached my original reg.bat so you can see the differences ( ' instead of , for me)

reg.zip

Posted

I've re-uploaded it, and fixed the posted code too with the correction for your remote desktop error!

I hope it helps.

Posted (edited)
..the remote desktop is not removed, but i can lived with it :sneaky: ..

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 by TranceEnergy
Posted

Thank you again Yzöwl; the batch is now perfect :thumbup

Thank you too TranceEnergy, i've added your command it's even better ! B)

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