Jump to content

cleanup.cmd not working


Recommended Posts

Something doesnt work with my cleanup.cmd file, it will run, but comes up saying windows cannot find any of the files in it, and they are there, can anyone help me? I think it found the first 2 actually, but nothing else.

@echo off

DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

DEL "%AllUsersProfile%\Start Menu\Programs\SlySoft\AnyDVD\AnyDVD.Ink"
DEL "%AllUsersProfile%\Start Menu\Programs\SlySoft\AnyDVD\Register AnyDVD.Ink"

DEL "%AllUsersProfile%\Desktop\Internet Explorer.lnk"
DEL "%AllUsersProfile%\Desktop\AnyDVD.lnk"
DEL "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"
DEL "%AllUsersProfile%\Desktop\CyberLink PowerDVD.lnk"
DEL "%AllUsersProfile%\Desktop\AnyDVD.lnk"

RD /S /Q "%AllUsersProfile%\Desktop\Special Folder Icons"

DEL "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\IsoBuster.Ink"
DEL "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.Ink"
DEL "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.Ink"

DEL "%systemdrive%\bootlogo.cmd"
DEL "%systemdrive%\start.cmd"
DEL "%systemdrive%\fonts.exe"
DEL "%systemdrive%\xpize.exe"

EXIT

Link to comment
Share on other sites


Some shortcuts (Internet explorer shortcuts) are not created until the first time when you log on to your desktop, this might be causing some problems.

I also suggest you add the /Q switch to the delete entries when it's complete so it will suppress the messages in case an error is encountered.. Of course now that you're testing it it's wise to not have the switches in place yet so you will see if it works.

*EDIT*

Found some errors.. In the following files you use .INK instead of .LNK. Change the extensions to the correct ones.

DEL "%AllUsersProfile%\Start Menu\Programs\SlySoft\AnyDVD\AnyDVD.Ink"
DEL "%AllUsersProfile%\Start Menu\Programs\SlySoft\AnyDVD\Register AnyDVD.Ink"

DEL "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\IsoBuster.Ink"
DEL "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.Ink"
DEL "%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.Ink"

I'd also advise changing

RD /S /Q "%AllUsersProfile%\Desktop\Special Folder Icons"

to

RD /S /Q "%AllUsersProfile%\Desktop\Special Folder Icons\"

Link to comment
Share on other sites

The IE desktop icon can be removed with a registry tweak.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu]
"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\NewStartPanel]
"{871C5380-42A0-1069-A2EA-08002B30309D}"=dword:00000001

Link to comment
Share on other sites

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