Jump to content

cleanup doesn't do its job.


Recommended Posts


  • 3 weeks later...

i'm having a similar problem with my cleanup.cmd. It used to work, then i started

adding other clean-up commands to it so it looks like this. now the only thing that works is the shutdown command which triggers. Can anybody see any mistakes and please show me how it's done? Thankx very much

P.S. could someone tell me the command for deleting only the shortcuts under the logged in user?

cmdow @ /HID
shutdown.exe -r -f -t 90 -c "Windows XP will now restart in 90 seconds...giving enough time for shortcuts to update and for the shell to fully load before restarting"
net user aspnet /delete

DEL "%allusersprofile%\desktop\Adobe Reader 6.lnk"
DEL "%allusersprofile%\start menu\Programs\Adobe Reader 6.lnk"

DEL "%allusersprofile%\start menu\Programs\PrintMe Internet Printing"
DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"
DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"
DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"

DEL "%allusersprofile%\start menu\WinZip.lnk"
DEL "%allusersprofile%\desktop\WinZip.lnk"
DEL "%allusersprofile%\start menu\Programs\WinZip\Uninstall WinZip.lnk"
DEL "%allusersprofile%\start menu\Programs\WinZip\Help Manual.lnk"
DEL "%allusersprofile%\start menu\Programs\WinZip\ReadMe.txt.lnk"
DEL "%allusersprofile%\start menu\Programs\WinZip\What's New.lnk"

DEL "%allusersprofile%\desktop\Kazaa Lite K++.lnk"
DEL "%allusersprofile%\desktop\Microsoft Mouse.lnk"
DEL "%allusersprofile%\desktop\Nero StartSmart.lnk"
DEL "%allusersprofile%\desktop\Spybot - Search & Destroy.lnk"

RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"
RD /S /Q %systemdrive%\Drivers\
RD /S /Q %systemdrive%\install\


EXIT

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