XKnoppix Posted April 22, 2004 Share Posted April 22, 2004 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!" EXITNow everything works except for:RD /S /Q %allusersprofile%\Start Menu\Programs\PrintMe Internet Printingand...RD /S /Q %systemdrive%\Documents and Settings\John\Favorites\Linksvery odd Thanks Link to comment Share on other sites More sharing options...
bucketbuster Posted April 22, 2004 Share Posted April 22, 2004 I don't know for sure, but isn't :RD /S /Q %allusersprofile%\Start Menu\Programs\PrintMe Internet Printinga link? So you have to use del instead of rd? Link to comment Share on other sites More sharing options...
Aaron Posted April 22, 2004 Share Posted April 22, 2004 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. Link to comment Share on other sites More sharing options...
[BM]Crusher Posted April 23, 2004 Share Posted April 23, 2004 AaronXP is 100% correct... quotation marks are all you need to fix it...Print Me Internet Printing is installed by Adobe Reader 6, and it is a directory... Link to comment Share on other sites More sharing options...
sambrus Posted April 23, 2004 Share Posted April 23, 2004 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. 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