illusions Posted November 10, 2004 Share Posted November 10, 2004 Hi, i was wondering if everyone can share what they include in cleanup.cmdthanks Link to comment Share on other sites More sharing options...
tguy Posted November 12, 2004 Share Posted November 12, 2004 Sure, here is what I use:cmdow @ /HID@echo offREM Cleanup.cmd batch fileREM To remove installation, & temporary files & unneeded shortcuts%windir%\system32\shutdown.exe /r /f /t 60 /c "Windows Server 2003 will now restart in 1 minute..."DEL "%AllUsersProfile%\Start Menu\Windows Update.lnk"DEL "%AllUsersProfile%\Start Menu\Programs\JustZIPit\Free Backup Software"DEL "%AllUsersProfile%\Start Menu\Programs\JustZIPit\Free Data Recovery Software"DEL "%AllUsersProfile%\Start Menu\Programs\JustZIPit\Support JustZIPit by visiting our Sponsor"DEL "%UserProfile%\Start Menu\JustZIPit.lnk"DEL "%UserProfile%\Desktop\Free Backup Software.url"DEL "%UserProfile%\Desktop\JustZIPit.lnk"DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\JustZIPit.lnk"ECHO Y|DEL C:\WINAPPS\*.*RD /S /Q %systemdrive%\PnPdrvrsRD /S /Q %systemdrive%\WINAPPS\Adobe\RD /S /Q %systemdrive%\WINAPPS\IE6\RD /S /Q %systemdrive%\WINAPPS\RKT\RD /S /Q %systemdrive%\WINAPPS\zip\RD /S /Q %windir%\Install\exittguy Link to comment Share on other sites More sharing options...
durex Posted November 12, 2004 Share Posted November 12, 2004 im anal.. what can i say...@echo offcmdow @ /HIDshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."set AUStart=%AllUsersProfile%\Start Menu\Programsset UserStart=%UserProfile%\Start Menu\Programsset UserStart=%UserProfile%\Start Menu\Programsset UserQL=%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launchset AUDesk=%AllUsersProfile%\DesktopREM ::::::::::::::::::::REM :::: User Admin ::::REM ::::::::::::::::::::REM :: Remove ASP User ::net user aspnet /deleteREM ::::::::::::::::::::REM :::: Start Menu ::::REM ::::::::::::::::::::REM :: Make New Folders ::MD "%AUStart%\Internet"MD "%AUStart%\Multimedia"MD "%AUStart%\Utilities"MD "%AUStart%\Utilities\Windows System Tools"REM :: Move Folders ::MOVE /Y "%AUStart%\Administrative Tools" "%AUStart%\Utilities\Administrative Tools"MOVE /Y "%AUStart%\Accessories\System Tools\*" "%AUStart%\Utilities\Windows System Tools"MOVE /Y "%UserStart%\Multimedia" "%AUStart%"REM :: Move Shortcuts ::MOVE /Y "%AUStart%\Executive Software Diskeeper.lnk" "%AUStart%\Utilities"MOVE /Y "%AUStart%\Accessories\Communications\Remote Desktop Connection.lnk" "%AUStart%\Internet"MOVE /Y "%AUStart%\Accessories\Entertainment\Sound Recorder.lnk" "%AUStart%\Accessories"MOVE /Y "%AUStart%\Accessories\Entertainment\Volume Control.lnk" "%AUStart%\Utilities"MOVE /Y "%AUStart%\iTunes\iTunes.lnk" "%AUStart%\Multimedia" "%AUStart%\Utilities"MOVE /Y "%AUStart%\Norton AntiVirus\Norton AntiVirus 2005.lnk" MOVE /Y "%AUStart%\WinRAR\WinRAR.lnk" "%AUStart%\Utilities"MOVE /Y "%AUDesk%\Adobe Reader 6.0.lnk" "%AUStart%\Multimedia"MOVE /Y "%UserStart%\Internet Explorer.lnk" "%AUStart%\Internet"MOVE /Y "%UserStart%\Outlook Express.lnk" "%AUStart%\Internet"MOVE /Y "%UserStart%\Windows Media Player.lnk" "%AUStart%\Multimedia"MOVE /Y "%UserStart%\Accessories\Address Book.lnk" "%AUStart%\Accessories"MOVE /Y "%UserStart%\Accessories\Command Prompt.lnk" "%AUStart%\Accessories"MOVE /Y "%UserStart%\Accessories\Windows Explorer.lnk" "%AUStart%\Accessories"MOVE /Y "%UserStart%\Accessories\Entertainment\Windows Media Player.lnk" "%AUStart%\Multimedia"MOVE /Y "%UserStart%\Startup\*" "%AUStart%\Startup"REM :: Remove Folders ::RD /S /Q "%AUStart%\Accessories\Accessibility"RD /S /Q "%AUStart%\Accessories\Communications"RD /S /Q "%AUStart%\Accessories\Entertainment"RD /S /Q "%AUStart%\Accessories\System Tools"RD /S /Q "%AUStart%\Administrative Tools"RD /S /Q "%AUStart%\iTunes"RD /S /Q "%AUStart%\Java Web Start"RD /S /Q "%AUStart%\Norton AntiVirus"RD /S /Q "%AUStart%\PrintMe Internet Printing"RD /S /Q "%AUStart%\QuickTime Alternative"RD /S /Q "%AUStart%\Real Alternative"RD /S /Q "%AUStart%\WinRAR"RD /S /Q "%UserStart%\Accessories\Entertainment"RD /S /Q "%UserStart%\WinRAR"REM :: Remove Shortcuts ::DEL "%AllUsersProfile%\Start Menu\Set Program Access and Defaults.lnk"DEL "%AllUsersProfile%\Start Menu\Windows Catalog.lnk"DEL "%UserStart%\Accessories\Program Compatibility Wizard.lnk"DEL "%AUDesk%\Norton AntiVirus.lnk"REM ::::::::::::::::::::::REM :::: Quick Launch ::::REM ::::::::::::::::::::::REM :: Create New Folders ::MD "%UserQL%\New Folder"MD "%UserQL%\Recycle Bin.{645FF040-5081-101B-9F08-00AA002F954E}"REM :: Create / Copy New Shortcuts ::COPY /Y "%AUStart%\Accessories\Windows Explorer.lnk" "%UserQL%"COPY /Y "%AUStart%\Multimedia\iTunes.lnk" "%UserQL%"COPY /Y "%AUStart%\Multimedia\Windows Media Player.lnk" "%UserQL%"REM ::::::::::::::::::::::::::::REM :::: Misc File Cleanup :::::REM ::::::::::::::::::::::::::::REM :: Remove Folders ::RD /S /Q "%systemroot%\Cache\Adobe Reader 6"RD /S /Q "%systemdrive%\drivers":: Remove Logs & System Files ::DEL "%systemsdrive%\iTunes.log"DEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"DEL "%systemroot%\system32\dllcache\*.scr"DEL "%systemroot%\system32\*.scr"EXIT Link to comment Share on other sites More sharing options...
gamehead200 Posted November 12, 2004 Share Posted November 12, 2004 format c: Link to comment Share on other sites More sharing options...
Astalavista Posted November 13, 2004 Share Posted November 13, 2004 cmdow @ /HIDIF EXIST D:\CD.txt set CDROM=D:IF EXIST E:\CD.txt set CDROM=E:IF EXIST F:\CD.txt set CDROM=F:IF EXIST G:\CD.txt set CDROM=G:IF EXIST H:\CD.txt set CDROM=H:IF EXIST I:\CD.txt set CDROM=I:IF EXIST J:\CD.txt set CDROM=J:shutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."//New NotepadDEL "%systemroot%\*.bmp"DEL "%systemroot%\Web\Wallpaper\*.jpg"REN %windir%\System32\dllcache\notepad.exe notepad.oldCOPY "%CDROM%\Software\notepad.exe" "%windir%\System32\dllcache\"REN %windir%\System32\notepad.exe notepad.oldCOPY "%CDROM%\Software\notepad.exe" "%windir%\System32\"REN %windir%\notepad.exe notepad.oldCOPY "%CDROM%\Software\notepad.exe" "%windir%"//Standard CrapRD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.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 "%AllUsersProfile%\Start Menu\Programs\PopCap Games"RD /S /Q "%AllUsersProfile%\Start Menu\Programs\GameHouse"del "%allusersprofile%\desktop\Divx Movies.lnk"//Ad-AwareDEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Ad-Aware SE Personal.lnk"del "%Administratorprofile%\desktop\Ad-Watch*.lnk"DEL "%AppData%\Microsoft\Internet Explorer\Quick Launch\Ad*.lnk"//Adobe Reader 6.0.2DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.2.lnk"//Adobe Gamma LoaderDEL "%AllUsersProfile%\Start Menu\Programs\Startup\Adobe Gamma Loader.lnk"//AdAware Se ProfessionalDEL "%UserProfile%\Desktop\Ad-*.lnk"//FlashGetDEL "%UserProfile%\Desktop\FlashGet.lnk"//Nero 6.6DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.lnk"DEL "%AllUsersProfile%\Desktop\Nero StartSmart.lnk"//WinampDEL "%UserProfile%\Desktop\Winamp.lnk"//Deleting Sample Music, Playlists, and Pictures...RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Music\"RD /S /Q "%AllUsersProfile%\Documents\My Music\Sample Playlists\"RD /S /Q "%AllUsersProfile%\Documents\My Pictures\Sample Pictures\"//PowerDVD 6del "%systemdrive%\Program Files\CyberLink\PowerDVD\OLRSubmission\OLRSubmission.exe"del "%systemdrive%\Documents and Settings\All Users\Start Menu\Programs\CyberLink PowerDVD\On-Line Registration.lnk"RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"RD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\install\RD /S /Q %systemdrive%\install\Cache\EXIT Link to comment Share on other sites More sharing options...
Brindamour Posted November 13, 2004 Share Posted November 13, 2004 @DurexYou may be Anal, but that is exactly what I have been looking for!! Wonder what that says about me?? 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