Jump to content

Recommended Posts

Posted

Here is my cleanup.cmd file:

cmdow @ /HID@echo off
REG DELETE HKLM\software\Microsoft\Windows\CurrentVersion\Run /V "Cleanup" /f
DEL "%systemroot%\*.bmp"DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"
DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"
RD /S /Q %systemdrive%\Documents and Settings\John\Favorites\Links
net user aspnet /delete
RD /S /Q %allusersprofile%\Start Menu\Programs\PrintMe Internet PrintingRD /S /Q %systemdrive%\Drivers\
DEL "%allusersprofile%\Desktop\*.lnk"DEL "%userprofile%\Desktop\*.lnk"
attrib -R "%allusersprofile%\Application Data\Microsoft\Network\Connections\Pbk\*.*" /S /D
shutdown.exe -r -f -t 60 -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!"
EXIT

Now everything works except for:

RD /S /Q %allusersprofile%\Start Menu\Programs\PrintMe Internet Printing

and...

RD /S /Q %systemdrive%\Documents and Settings\John\Favorites\Links

very odd :)

Thanks


Posted

I don't know for sure, but isn't :

RD /S /Q %allusersprofile%\Start Menu\Programs\PrintMe Internet Printing

a link? So you have to use del instead of rd?

Posted

You're forgetting that files/folders that contain spaces need to be wrapped in quotations.

RD /S /Q "%allusersprofile%\Start Menu\Programs\PrintMe Internet Printing"RD /S /Q "%systemdrive%\Documents and Settings\John\Favorites\Links"

To see what I mean, type %systemdrive%\Documents and Settings\John from the Start > Run box and it'll say its not found (see where it stops just after "documents"?). Wrapping it in quotes afterwards fixes it.

Posted

To Remove the links folder completetly is a reg hack.

;Remove Links Folder From Internet Explorer [HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Toolbar]"LinksFolderName"=""

Once you run your regtweeks, delete the folder and it won't come back.

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