::Written for, and used on, XP2 XP3 nLiteXP3 W2003sp2 ::LICENCE GNU GPL2 ::AUTHOR Urban Eriksson ::MAIL erur#operamail.com copy /y windel_desktop_ini.bat %SystemDrive%\ color f0 %SystemDrive% cd\ ::sfc /cachesize=0 /purgecache ::but wakes WFP from the dead??? del /a:h bootsect.dos io.sys msdos.sys del /a:rhs bootsect.dos io.sys msdos.sys del autoexec.bat config.sys del *.chk del /s brndlog* del /s *.htt del /s /ah *.htt del "%AllUsersProfile%\Desktop\Security Configuration Wizard.lnk" rd /s /q "%AllUsersProfile%\Application Data\Microsoft\User Account Pictures" ::DEFAULT USER (ALL LANGUAGES) rd /s /q "%UserProfile%\..\Default User\Cookies" rd /s /q "%UserProfile%\..\Default User\Recent" compact /c "%UserProfile%\..\Default User\ntuser.dat" ::DEFAULT USER (ENG AND SWE) rd /s /q "%UserProfile%\..\Default User\Favorites" rd /s /q "%UserProfile%\..\Default User\Favoriter" rd /s /q "%UserProfile%\..\Default User\My Documents" rd /s /q "%UserProfile%\..\Default User\Mina dokument" rd /s /q "%UserProfile%\..\Default User\Desktop" rd /s /q "%UserProfile%\..\Default User\Skrivbord" rd /s /q "%UserProfile%\..\Default User\Local Settings" rd /s /q "%UserProfile%\..\Default User\Lokala inst„llningar" rd /q /s "%UserProfile%\Recent" ::it respawn with a desktop.ini del "%ProgramFiles%\Common Files\Services\*.bmp" del "%ProgramFiles%\Messenger\*.gif" del "%ProgramFiles%\MSN Messenger\license.rtf" del "%ProgramFiles%\Codec Pack - All In 1\*.ico" del "%ProgramFiles%\Codec Pack - All In 1\*.bmp" del "%ProgramFiles%\Codec Pack - All In 1\*.txt" compact /c "%ProgramFiles%\Codec Pack - All In 1\irunin.ini" del "%ProgramFiles%\Opera\License.txt" del "%ProgramFiles%\Opera 9\License.txt" del "%ProgramFiles%\QuickTime Alternative\*.ico" start /min /abovenormal %SystemDrive%\windel_desktop_ini.bat %SystemDrive% cd\ cd %windir% compact /c twa*.dll twu*.exe iun*.exe del Web\*.htm del Web\*.gif rd /s /q %windir%\Web\Wallpaper net stop WuauServ start /min net stop BITS start /min net stop CryptSvc del kb*.log for /f "tokens=*" %%1 in ('dir /b /ad $MS*') do rd /s /q "%%1" for /f "tokens=*" %%1 in ('dir /b /ad $Hf*') do rd /s /q "%%1" for /f "tokens=*" %%1 in ('dir /b /ad $Nt*') do rd /s /q "%%1" for /f "tokens=*" %%1 in ('dir /b /ad $Un*') do rd /s /q "%%1" rd /s /q SoftwareDistribution\Download compact /c /s:%windir%\$regcmp$ * ::more Uninstall crap...???? compact /c $regcmp$ del /s /q /f $hf_mig$ del /s /q /f $NtServicePackUninstallIDNMitigationAPIs$ del /s /q /f $NtServicePackUninstallNLSDownlevelMapping$ del /s /q /f RegisteredPackages del /s /q /f SoftwareDistribution del /s /q /f ServicePackFiles compact /c $hf_mig$ compact /c $NtServicePackUninstallIDNMitigationAPIs$ compact /c $NtServicePackUninstallNLSDownlevelMapping$ compact /c RegisteredPackages compact /c SoftwareDistribution compact /c ServicePackFiles ::Keeps cacls and compresses future files compact /c Installer compact /c "Network Diagnostic\xpnetdiag.exe" compact /c "Network Diagnostic" compact /c "Offline Web Pages" compact /c ShellNew compact /c Tasks compact /c %windir%\nview\* mkdir %windir%\z move "%windir%\Driver Cache\i386"\*.cab %windir%\z compact /c /s:"%windir%\Driver Cache\i386" * move %windir%\z\*.cab "%windir%\Driver Cache\i386"\ rd %windir%\z attrib -s -h winnt.bmp attrib -s -h winnt256.bmp del /s /q *.bmp *.log *.old *.txt *.bck *.cnt *.chk *.avi *.bak *.pif *.prx *.tmp ::*.sav is LastKnownGood...?? del Sti_Trace.log md Sti_Trace.log del setupapi.log md setupapi.log del WindowsUpdate.log md WindowsUpdate.log del SchedLgU.Txt md SchedLgU.Txt attrib -s -h bootstat.dat regsvr32 /u /s winhelp.exe del bootstat.dat odbcinst.ini wordpad.ini winhelp.exe move /y notepad.exe System32 move /y taskman.exe System32 move Cursors\arrow_r.cur . del /q Cursors\* move arrow_r.cur Cursors rd /s /q Pif rd /s /q Temp md Temp compact /c Temp del /f /q %windir%\minidump\* cd %windir%\Fonts ::attrib, to easier delete and afterwards to see if we missed anything attrib -h * attrib +h cga*woa.fon attrib +h ega*woa.fon attrib +h coure.fon attrib +h dosapp.fon attrib +h modern.fon attrib +h roman.fon attrib +h serife.fon attrib +h smalle.fon attrib +h sserife.fon attrib +h symbole.fon attrib +h vgafix.fon attrib +h vgaoem.fon attrib +h vgasys.fon attrib +h marlett.ttf compact /c smalle.fon del 85*.fon app*.fon del cga40737.fon cga408*.fon del cga80737.fon cga808*.fon del ega40737.fon ega408*.fon del ega80737.fon ega808*.fon ::del coue1257.fon couf1257.fon couree.fon coureg.fon courer.fon couret.fon ::del courf.fon courfe.fon courfg.fon courfr.fon courft.fon ::Courier New is great for text. Keep all to be safe... del dos737.fon script.fon del sere1257.fon serf1257.fon serifee.fon serifeg.fon serifer.fon serifet.fon del seriff.fon seriffe.fon seriffg.fon seriffr.fon serifft.fon shruti.ttf del smae1257.fon smaf1257.fon smallee.fon smalleg.fon smaller.fon smallet.fon del smallf.fon smallfe.fon smallfg.fon smallfr.fon smallft.fon del ssee1257.fon ssef1257.fon sserifee.fon sserifeg.fon sserifer.fon sserifet.fon del sseriff.fon sseriffe.fon sseriffg.fon sseriffr.fon sserifft.fon del vga7*.fon vga8*.fon vgaf1257.fon vgafixe.fon vgafixg.fon vgafixr.fon vgafixt.fon del vgas1257.fon vgasyse.fon vgasysg.fon vgasysr.fon vgasyst.fon wst*.fon ::KEEP arial.ttf arialbd.ttf arialbi.ttf ariali.ttf courbd.ttf lucon.ttf ::KEEP marlett.ttf micross.ttf tahoma.ttf tahomabd.ttf times.ttf timesbd.ttf ::KEEP verdana.ttf verdanab.ttf verdanai.ttf verdanaz.ttf ::Extra ttf (Some are languages but that still works by nls...) ::Keeping Courier New cour.ttf courbi.ttf couri.ttf courbd.ttf del ariblk.ttf comic*.ttf estre.ttf framd*.ttf del gautami.ttf georgia*.ttf impact.ttf l_10646.ttf latha.ttf del mangal.ttf mvboli.ttf pala*.ttf raavi.ttf shruti.ttf sylfaen.ttf symbol.ttf del trebuc*.ttf timesbi.ttf timesi.ttf tunga.ttf webdings.ttf wingding.ttf ::Perhaps also delete all BookAntiqua BookmanOldStyle CenturyGothic Garamond cd %windir%\inf del infcache.1 ::next boot create fresh driver cache pnf del *.pnf ::most pnf are very compressable......... compact /c *.adm ::AnalogueModem drivers compact /c *mdm* ::Inf are cached by pnf anyway. And i only compact files above 8k compact /c 1394.inf 3dfxvs2k.inf accessor.inf apps.inf atiixpaa.inf compact /c atiixpag.inf atim128.inf atimpab.inf atiradn1.inf atividin.inf compact /c atixpwdm.inf avmisdn.inf battery.inf bda.inf bfax.inf compact /c biosinfo.inf brmfcmdm.inf brmfcmf.inf brmfcwia.inf camdsh20.inf compact /c camvid20.inf cdrom.inf certocm.inf clusocm.inf comnt5.inf compact /c dcup.inf dcup5.inf defltdc.inf defltsv.inf devxprop.inf compact /c dgaport.inf dgasync.inf digimps.inf dimaps.inf display.inf divasrv.inf compact /c dot4.inf drvindex.inf dsup.inf dsupt.inf dvd.inf font.inf fp50ext.inf compact /c fxsocm.inf g450ms.inf g550ms.inf hpojscan.inf huuuu i81xnt5.inf compact /c ialmnt5.inf icam4usb.inf icam5usb.inf icwnt5.inf ie.inf iis.inf compact /c image.inf ims.inf input.inf ins.inf intl.inf irdasmc.inf irnsc.inf compact /c irtos4mo.inf kdk2x0.inf keyboard.inf ks.inf kscaptur.inf ksfilter.inf compact /c layout.inf licenoc.inf lwusbhid.inf machine.inf mchgr.inf mdac.inf compact /c mdm3com.inf mdm3cpcm.inf mdm3mini.inf mdm5674a.inf mdm656n5.inf compact /c mdmaiwa.inf mdmaiwa3.inf mdmaiwa4.inf mdmaiwa5.inf mdmarch.inf compact /c mdmati.inf mdmatm2k.inf mdmatt.inf mdmaus.inf mdmbcmsm.inf mdmboca.inf compact /c mdmbsb.inf mdmbw561.inf mdmc26a.inf mdmcm28.inf mdmcodex.inf mdmcom1.inf compact /c mdmcpq.inf mdmcpq2.inf mdmcrtix.inf mdmdcm5.inf mdmdcm6.inf mdmdf56F.inf compact /c mdmdgden.inf mdmdgitn.inf mdmdigi.inf mdmdp2.inf mdmdsi.inf mdmdyna.inf compact /c mdmeiger.inf mdmelsa.inf mdmeric.inf mdmeric2.inf mdmetech.inf mdmexp.inf compact /c mdmfj2.inf mdmgatew.inf mdmgcs.inf mdmgen.inf mdmgl001.inf compact /c mdmgl002.inf mdmgl003.inf mdmgl004.inf mdmgl005.inf mdmgl006.inf compact /c mdmgl007.inf mdmgl008.inf mdmgl009.inf mdmgl010.inf mdmgsm.inf compact /c mdmhandy.inf mdmhay2.inf mdmhayes.inf mdminfot.inf mdmintel.inf compact /c mdmiodat.inf mdmirmdm.inf mdmisdn.inf mdmjf56e.inf mdmlasat.inf compact /c mdmlasno.inf mdmlt3.inf mdmlucnt.inf mdmmc288.inf mdmmcom.inf compact /c mdmmct.inf mdmmega.inf mdmmetri.inf mdmmhrtz.inf mdmmhza.inf compact /c mdmmhzel.inf mdmmhzk1.inf mdmmod.inf mdmmoto.inf mdmmoto1.inf compact /c mdmmts.inf mdmneuhs.inf mdmnis2u.inf mdmnova.inf mdmnttd2.inf compact /c mdmnttd6.inf mdmnttp.inf mdmnttp2.inf mdmolic.inf mdmomrn3.inf compact /c mdmosi.inf mdmosice.inf mdmpace.inf mdmpenr.inf mdmpin.inf mdmpp.inf compact /c mdmracal.inf mdmrock.inf mdmrock3.inf mdmrock4.inf mdmrock5.inf compact /c mdmrpci.inf mdmrpciw.inf mdmsier.inf mdmsii64.inf mdmsiil6.inf compact /c mdmsonyu.inf mdmspq28.inf mdmsun2.inf mdmsupr3.inf mdmsupra.inf compact /c mdmsuprv.inf mdmtdk.inf mdmtdkj2.inf mdmtdkj3.inf mdmtdkj4.inf compact /c mdmtdkj5.inf mdmtdkj6.inf mdmtdkj7.inf mdmtexas.inf mdmti.inf compact /c mdmtosh.inf mdmtron.inf mdmusrg.inf mdmusrgl.inf mdmusrk1.inf compact /c mdmvv.inf mdmwhql0.inf mdmx5560.inf mdmxircc.inf mdmxirmp.inf compact /c mdmzoom.inf mdmzyp.inf mdmzyxel.inf mdmzyxlg.inf memcard.inf compact /c mfcem56.inf mmopt.inf monitor.inf monitor2.inf monitor3.inf compact /c monitor4.inf monitor5.inf monitor6.inf monitor7.inf monitor8.inf compact /c mplayer2.inf msdv.inf mshdc.inf msmouse.inf msnetmtg.inf msoe50.inf compact /c msports.inf mstape.inf neo20xx.inf net21x4.inf net3c985.inf compact /c net557.inf netamd2.inf netana.inf netb57xp.inf netcbe.inf compact /c netce3.inf netcem56.inf netcpqg.inf netcpqi.inf netdgdxb.inf compact /c netdhcps.inf nete1000.inf netel90b.inf netel99x.inf netfxocm.inf compact /c netibm.inf netibm2.inf netirsir.inf netmacsv.inf netmadge.inf compact /c netmscli.inf netnm.inf netnwlnk.inf netoc.inf netosi2c.inf compact /c netprism.inf netrasa.inf netrass.inf netrtsnt.inf netsis.inf compact /c netsk_fp.inf netsnmp.inf nettcpip.inf netvt86.inf netwlan.inf compact /c netwv48.inf netx500.inf ntprint.inf nv4_disp.inf nvct.inf compact /c nvdm.inf nvts.inf ocmri.inf oem0.inf oem1.inf oem2.inf compact /c oem3.inf oem4.inf ovcam.inf pcmcia.inf phdsext.inf phil2vid.inf compact /c phildec.inf pnpscsi.inf pop3oc.inf printupg.inf prtupg9x.inf compact /c sakit.inf sapi5.inf sceregvl.inf scsi.inf scsidev.inf compact /c secrecs.inf setupqry.inf shell.inf sisgr.inf smartcrd.inf compact /c smi.inf spx.inf spxports.inf sti.inf swnt.inf syscomp.inf compact /c syssetup.inf tape.inf tshoot.inf tsoc.inf usb.inf usbport.inf compact /c usbstor.inf wab50.inf wdma10k1.inf wdmaudio.inf wdma_ali.inf compact /c wdma_avc.inf wdma_csf.inf wdma_cwr.inf wdma_es3.inf wdma_int.inf compact /c wdma_m2e.inf wdma_rip.inf wdma_sis.inf wdma_usb.inf wdma_via.inf compact /c wmdm.inf wmp.inf wmsocm.inf cd.. cd %windir%\System32 del TZLog.log compact /c msg711.acm msgsm32.acm compact /c mqperf.ini pschdprf.ini rsvp.ini tslabels.ini compact /c bits\qmgr.dll compact /c Com\* compact /c drivers\atmuni.sys compact /c drivers\dmboot.sys compact /c drivers\emu10k1m.sys compact /c drivers\rmcast.sys compact /c icsXML\* compact /c /a Restore\* compact /c Setup\* compact /c /u Setup\koc.dll compact /c wbem\*.tlb compact /c wbem\wmiclimofformat.xsl compact /c wbem\xml\*.dll del wbem\Logs\wmiprov.log md wbem\Logs\wmiprov.log del /f /q config\*.Evt del Macromed\Flash\install.log ::Exchange Server. And WindowsUpdate...? del CatRoot2\dberr.txt md CatRoot2\dberr.txt del CatRoot2\edb.chk md CatRoot2\edb.chk rd /s /q %windir%\System32\CatRoot2\edb.log ::del CatRoot2\edb.log BRAKES MSN ::md CatRoot2\edb.log del CatRoot2\res1.log md CatRoot2\res1.log del CatRoot2\res2.log md CatRoot2\res2.log compact /c CatRoot2\{127D0A1D-4EF2-11D1-8608-00C04FC295EE}\catdb compact /c CatRoot2\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\catdb ::DistributedTransactionCoordinator. Cluster stuff.. del MsDtc\*.log del MsDtc\Trace\*.log compact /c MsDtc\Trace\* ::non-english codepages compact /c c_037.nls c_500.nls c_737.nls c_775.nls c_852.nls compact /c c_855.nls c_857.nls c_860.nls c_861.nls c_863.nls compact /c c_865.nls c_866.nls c_869.nls c_874.nls c_875.nls compact /c c_1026.nls c_1258.nls c_10000.nls c_10006.nls c_10007.nls compact /c c_10010.nls c_10017.nls c_10029.nls c_10079.nls c_10081.nls compact /c c_10082.nls c_20127.nls c_20261.nls c_20866.nls c_20905.nls compact /c c_21866.nls c_28592.nls c_28593.nls c_28594.nls c_28595.nls compact /c c_28597.nls c_28598.nls c_28599.nls c_28603.nls c_28605.nls ::c_850.nls is Swe ::minority languages compact /c kbdal.dll kbdaze.dll kbdazel.dll kbdest.dll kbdfi1.dll compact /c kbdgae.dll kbdic.dll kbdkaz.dll kbdkyr.dll kbdlt.dll compact /c kbdlv.dll kbdlv1.dll kbdmac.dll kbdmaori.dll kbdmlt47.dll compact /c kbdmlt48.dll kbdmon.dll kbdno1.dll kbdsmsfi.dll kbdsmsno.dll compact /c kbdtat.dll kbdur.dll kbduzb.dll kbdfo.dll kbdlt1.dll ::win16 del shell.dll sound.drv stdole.tlb system.drv tapi.dll timer.drv toolhelp.dll regsvr32 /u /s user.exe del user.exe regsvr32 /u /s winver.exe del vcdex.dll vdmredir.dll ver.dll winver.exe vga.drv vwipxspx.dll vwipxspx.exe del wfwnet.drv wifeman.dll win87em.dll win.com winnls.dll winoldap.mod winsock.dll winspool.exe del ansi.sys append.exe autoexec.nt autoexec.tmp avicap.dll avifile.dll del bios1.rom bios4.rom v7vga.rom cmos.ram del comm.drv command.com commdlg.dll config.nt config.tmp country.sys del ctl3dv2.dll ::NT WoW 3D Control del ddeml.dll regsvr32 /u /s dosx.exe del debug.exe doskey.exe dosx.exe ::virtual DOS del drwatson.exe ::win16 GUI faildetect and log regsvr32 /u /s drwtsn32.exe del drwtsn32.exe ::win32 GUI faildetect and log del ds16gt.dll ds32gt.dll del edit.com edit.hlp del edlin.exe ::DOS line editor del exe2bin.exe ::DOS del forcedos.exe ::force XP to run util that contain code for OS/2 and DOS ::del find.exe ::DOS find string (grep-ish del findstr.exe ::DOS find string (QGrep-ish del gdi.exe ::win16 GraphicalDeviceInterface API del graftabl.com graphics.com graphics.pro del himem.sys del kb16.com key01.sys keyboard.drv keyboard.sys del krnl386.exe ::win16 enhanced mode del lanman.drv loadfix.com del lzexpand.dll del mciavi.drv mciole16.dll mciseq.drv mciwave.drv del mem.exe del mmsystem.dll mmtask.tsk del mouse.drv msacm.dll mscdexnt.exe msvideo.dll del netapi.dll ::MS network dynamic link lib del netware.drv del nlsfunc.exe del ntdos.sys ntdos404.sys ntdos411.sys ntdos412.sys ntdos804.sys del ntio.sys ntio404.sys ntio411.sys ntio412.sys ntio804.sys del ntvdm.exe ntvdmd.dll ::NT Virtual DOS Machine del nw16.exe nwapi16.dll del odbc16gt.dll odbc32gt.dll ::OLE 16/32 interoperability del compobj.dll storage.dll typelib.dll ole2.dll ole2disp.dll del ole2nls.dll olecli.dll olesvr.dll oleprn.dll del pmspl.dll ::LAN Manager 2.1 regsvr32 /u /s sysedit.exe write.exe progman.exe del progman.exe sysedit.exe write.exe compact /c grpconv.exe ::critical file??! regsvr32 /u /s redir.exe del redir.exe ::win16 network redirector regsvr32 /u /s setver.exe del setver.exe ::define version of DOS reported to application regsvr32 /u /s share.exe del share.exe ::DOS Allow two apps to use the same file :: Is share.exe and fastopen.exe same???????? del fastopen.exe ::DOS for performance on large dirs by ::decreasing the time it takes to open ::frequently accessed files regsvr32 /u /s wow32.dll del wow32.dll wowdeb.exe wowexec.exe wowfax.dll wowfaxui.dll ::WOW=WindowsOnWindows or World Of Warcraft hehe regsvr32 /u /s systray.exe del systray.exe ::control Taskbar and IconTray ::Everything seems to work okay without it, though. regsvr32 /u /s taskman.exe del taskman.exe ::(TaskMgr.exe = real TaskManager) regsvr32 /u /s osuninst.exe del osuninst.exe ::uninstall XP to old Windows regsvr32 /u /s packager.exe del packager.exe ::ObjectPackager create icon links to embedded data for use in documents del sort.exe ::CLI sort input and write result to file or screen del subst.exe ::DOS command to associate path with a driveletter regsvr32 /u /s moricons.dll del moricons.dll ::NT Setup Icons del unicows.dll ::W9x Unicode del fldrclnr.dll ::Desktop CleanupWizard regsvr32 /u /s lights.exe del lights.exe ::modem status lights Win9x del lnkstub.exe ::W95 Migration Utility del replace.exe ::cmd to replace files (wtf? del regwiz.exe ::Registration Wizard automate registering XP del atmadm.exe ::ATM Call Manager del blastcln.exe ::Blaster/Nachi RemoveTool del ckcnv.exe ::Cookie Converter del fc.exe ::cmd File Compare del makecab.exe diantz.exe ::better use 7zip for archiving ::better use WinRAR for backups with builtin recovery ::better use WinUDA for self-extracting del migpwd.exe ::W95 to NT migration del miglibnt.dll ::NT migration del netsetup.exe ::Network Setup Wizard help configure PCs on LAN using a floppy disk del shutdown.exe ::local and remote Shutdown/Restart del winmsd.exe ::crappy XP diagnostic del wscntfy.exe ::Windows SecurityCenter Notification del wpabaln.exe ::Windows Product Activation Balloon nag regsvr32 /u /s winchat.exe del winchat.exe ::NT WfWorkgroups Chat del tosdvd.sys ::Toshiba DVD Stream ::regsvr32 /u /s msvcirt.dll ::del msvcirt.dll ::NT IOStreams (needed by Generals! del pifmgr.dll ::NT PIF Manager Icon Resources del cewmdm.dll ::WinCE WMDM Service del atkctrs.dll ::AppleTalk Perfmon Counter del atmfd.dll ::NT OpenType/Type1 Font Driver del atmlib.dll ::NT OpenType/Type1 API del atmpvcno.dll ::Atm Epvc Install del mswebdvd.dll ::WebDVD del vdmindvd.sys ::CineMasterC DVD del resutils.dll ::RichEdit 1.0 wrapper net stop alerter del /f /q alrsvc.dll label %SystemDrive% Windows ::better then 'Local Drive' ::Alt+Num255 for blank..? Space dont work. ::If c: label C. If d: label D and such... del label.exe del comp.exe diskcomp.com tree.com regsvr32 /u /s tourstart.exe del tourstart.exe del savedump.exe del setup.bmp ntimage.gif "View Channels.scf" del noise* del drivers\etc\*.sam regsvr32 /u /s ntsdexts.dll del ntsdexts.dll ::W2k Symbolic Debugger regsvr32 /u /s dbgeng.dll del dbgeng.dll ::W2k Symbol Debugger compact /c wscript.exe wsecedit.dll regsvc.dll spmsg.dll ::MS Script ::Security Config UI ::Remote Registry Service ::ServicePack Messages compact /c bthci.dll bthprops.cpl bthserv.dll btpanui.dll ::Bluetooth Class Installer ::Bluetooth ControlPanel ::Bluetooth Support Service ::Bluetooth PAN UI compact /c mobsync.dll mobsync.exe ::MS Sync Manager ::Offline Web Sync compact /c p2p.dll p2pgasvc.dll p2pgraph.dll p2pnetsh.dll p2psvc.dll spnpinst.exe ::Peer-to-Peer (not p2p) compact /c 6to4svc.dll qt-mt331.dll apcups.dll ccfgnt.dll compatUI.dll ::IP6 over IP4 ::Qt UI ::APC Smart Provider ::Internet Config ::CompatUI compact /c dmconfig.dll EqnClass.dll loghours.dll lpk.dll ::Logical Disk Manager Configuration Lib ::Equinox Multiport Serial Coinstaller ::Schedule Dialog ::Session LogOff Utility compact /c bitsprx2.dll bitsprx3.dll qmgrprxy.dll ::Background Intelligent Transfer Service Proxy compact /c msimsg.dll winbrand.dll winntbbu.dll ::Windows Installer International Messages ::Windows Branding ::Windows Setup Billboard compact /c shscrap.dll ::Shell Scrap object handler (more MS scripts.. compact /c wshcon.dll wshom.ocx ::Windows Script compact /c scrobj.dll scrrun.dll ::MS Script Runtime compact /c xpob2res.dll ::ServicePack2 OOB Messages compact /c rtipxmib.dll safrdm.dll safrslv.dll ::MS Router IPX MIB subagent ::MS Help Center Desktop Manager ::MS Help Center Session Resolver compact /c sti_ci.dll sti.dll stimon.exe ::Still Image Devices Monitor compact /c synceng.dll syncui.dll syncapp.exe ::Windows Briefcase compact /c ufat.dll ::FAT Utility compact /c unimdmat.dll ::Unimodem Service Provider AT Mini Driver compact /c vcdex.dll vdmredir.dll ::32bit MSCDEX Virtual Device Driver ::Virtual DOS Machine Network Interface compact /c vga256.dll vga64k.dll ::256color and 32k/64k-color VGA/SVGA driver compact /c vjoy.dll ::32bit Joystick Virtual Device driver compact /c net.hlp neth.dll ::Net Help compact /c g711codc.ax ::Intel G711 CODEC compact /c fsusd.dll ::FileSystem Camera Devices compact /c gcdef.dll ::Game Controllers Default Sheets compact /c glmf32.dll ::OpenGL Metafiling compact /c gpkcsp.dll gpkrsrc.dll ::Gemplus Cryptographic Service Provider compact /c hnetwiz.dll ncxpnt.dll netplwiz.dll ::Network Setup Wizards compact /c hsfcisp2.dll ::W2k HSF CoInstaller compact /c setupdll.dll ::W2k Setup Dynlink ::compact /c svcpack.dll, crappy ratio ::W2k ServicePack setup compact /c iedkcs32.dll ::IE Customization compact /c msieftp.dll ::IE FTP Folder Shell Extension compact /c imeshare.dll ::MS Office IME Shared property compact /c inetmib1.dll ::MS MIB-II subagent compact /c irclass.dll ir32_32.dll ::Infrared compact /c ir41_32.ax ir41_qc.dll ir41_qcx.dll ir50_32.dll compact /c ir50_qc.dll ir50_qcx.dll ivfsrc.ax iyuv_32.dll ::Intel Indeo Video 4.5 compact /c itircl.dll itss.dll ::MS InfoTech IR ::MS InfoTech StorageSystem compact /c mll_mtf.dll ::MS Tape Format Media Label compact /c jet500.dll mll_hp.dll ::JET Engine ::HP Media Label compact /c wshisn.dll ::NWLink2 Socket Helper compact /c wshnetbs.dll ::Netbios Windows Sockets Helper compact /c spnike.dll pjlmon.dll panmap.dll ::Nike device MDM Device Interface ::PJL Language monitor ::Panose Font Mapper compact /c paqsp.dll ::PaqSP Module compact /c sprio600.dll sprio800.dll ::Rio 800 MDM Device Interface compact /c serialui.dll ::Serial Port Property Pages compact /c spxcoins.dll ::Specialix MPS NT Upgrade CoInstaller compact /c tsbyuv.dll ::Toshiba Video Codec compact /c TwnLib4.dll TwnLib20.dll ::TwainPRO compact /c mll_qic.dll ::QIC113 Media Label compact /c xenroll.dll ::XEnroll compact /c winfax.dll ::MS Fax API compact /c msrd2x40.dll msrd3x40.dll ::MS Red ISAM compact /c msrecr40.dll msrclr40.dll ::MS Jet Briefcase Reconciler compact /c msutb.dll ::MS UTB Server compact /c setupnt.dll ::NT Setup Dynlink compact /c sfmapi.dll ::NT Macintosh File Service Client compact /c w32topl.dll ::NT Topology Maintenance compact /c feclient.dll ::NT File Encryption Client Interfaces compact /c proctexe.ocx ::Intel Procedural Textures compact /c tdc.ocx ::TDC ActiveX Control compact /c instcat.sql ::Installs catalog stored procedures on the MS SQL Server compact /c netsetup.cpl ::Network Setup Wizard ControlPanel Applet compact /c intl.cpl ::Regional and Language Options compact /c joy.cpl ::Game Controllers ControlPanel ::USR/3Com Modem drivers compact /c usrcntra.dll usrcoina.dll usrdpa.dll usrdtea.dll compact /c usrfaxa.dll usrlbva.dll usrmlnka.exe usrprbda.exe compact /c usrrtosa.dll usrsdpia.dll usrshuta.exe usrsvpia.dll compact /c usrv42a.dll usrv80a.dll usrvoica.dll usrvpa.dll compact /c /a "%windir%\System32\config\SystemProfile\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat" compact /c /a "%UserProfile%\..\NetworkService\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat" compact /c /a "%UserProfile%\..\LocalService\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat" compact /c "%CommonProgramFiles%\DAO\dao360.dll" compact /c "%CommonProgramFiles%\TextConv\*" compact /c "%CommonProgramFiles%\Triedit\*" compact /c "%CommonProgramFiles%\MSInfo\ieinfo5.ocx" compact /c "%CommonProgramFiles%\MSSoap\Binaries\mssoap1.dll" del "%CommonProgramFiles%\Services\*.bmp" compact /c "%CommonProgramFiles%\System\wab*.dll" compact /c "%CommonProgramFiles%\System\ado\msado15.dll" compact /c "%CommonProgramFiles%\System\ado\msadomd.dll" compact /c "%CommonProgramFiles%\System\ado\msadox.dll" compact /c "%CommonProgramFiles%\System\ado\*.tlb" compact /c "%CommonProgramFiles%\System\msadc\*.dll" compact /c "%CommonProgramFiles%\System\Ole DB\msdaora.dll" compact /c "%CommonProgramFiles%\System\Ole DB\msdaps.dll" compact /c "%CommonProgramFiles%\System\Ole DB\msdasql.dll" compact /c "%CommonProgramFiles%\System\Ole DB\oledb*.dll" compact /c "%CommonProgramFiles%\System\Ole DB\sqloledb.dll" compact /c "%CommonProgramFiles%\System\Ole DB\sqlxmlx.dll" compact /c "%CommonProgramFiles%\System\Ole DB\*.rll" compact /c "%CommonProgramFiles%\Microsoft Shared\TextConv\msconv97.dll" compact /c /s:%windir% *.tmp compact /c /s:%windir%\security *.log compact /c /s:%windir%\Installer * compact /c /s:%windir%\ShellNew * compact /c /s:%windir%\System32\CatRoot2 *.log compact /c /s:%windir%\System32\wbem mof.xsl hform.xsl htable.xsl texttable.xsl cimwin32.dll ntevt.dll compact /c /s:%windir%\System32\oobe * compact /u /s:%windir%\System32\oobe *.jpg *.wma *.png ::if W2k compact /u /s:%windir%\System32 appwiz.cpl desk.cpl sysdm.cpl ::if W2k compact /u /s:%windir%\System32 eventvwr.msc services.msc ::if W2k compact /u /s:%windir%\System32 devmgmt.msc lusrmgr.msc gpedit.msc start /min /abovenormal compact /c /s wmsdkns.xml msimgsiz.dat ::compact /c /s *.wav ::compact /c /s:%SystemDrive%\. *.wav ::pnf too slow...? ::tsp = Windows Telephony Service Provider ::xml sometimes compressed ::doc may contain huge jpg... ::xsl already compressed? ::xhtml to often used by Opera? ::url lnk too small? Opera use cache4.url alot. ::manifest too small? ::policy too small? important? ::cmd not always batch files? ::gif too low ratio ::js too interactive...? ::etc etc....... ::NTFS Compression is very slow when compressed a whole disk. ::But choosing files carefully, the decompression itself is ::faster then HardDrives and actually benefit performance. ::GOOD TO COMPRESS ::Files not used during gaming and movie and interaction. ::Files rarely Written to. ::Good compression ratio. (Not upx-exe/dll jpg png avi mp3 rar z7 etc) ::Between ~6k to 100MB. ::Rarely used files. del %windir%\Prefetch\cacls*.pf del %windir%\Prefetch\taskkill*.pf del %windir%\Prefetch\attrib*.pf del %windir%\Prefetch\delprof*.pf del %windir%\Prefetch\mode.com*.pf del %windir%\Prefetch\powercfg*.pf del %windir%\Prefetch\bootcf*.pf del %windir%\Prefetch\diskpe*.pf del %windir%\Prefetch\fsuti*.pf del %windir%\Prefetch\chkdsk*.pf del %windir%\Prefetch\logon.scr*.pf del %windir%\Prefetch\helpsvc*.pf del %windir%\Prefetch\msiexec*.pf del %windir%\Prefetch\setup*.pf del %windir%\Prefetch\unin*.pf del %windir%\Prefetch\unwi*.pf del %windir%\Prefetch\install*.pf del %windir%\Prefetch\windowsxp*.pf del %windir%\Prefetch\update*.pf del %windir%\Prefetch\wuauclt*.pf del %windir%\Prefetch\wupdmgr*.pf del %windir%\Prefetch\defrag*.pf del %windir%\Prefetch\dfrgnt*.pf for /R %SystemDrive%\ %%1 in (*.txt *.htm* *.css *.svg *.reg *.bat *.inf *.vbs *.wsc *.ico *.xls *bmp) do if %%~z1 GTR 4096 (compact /c "%%1") for /R %SystemDrive%\ %%1 in (*.hlp *.sgm* *.php *.asp *.cgi *.sql *.rtf *.doc *.cnt *.dtd *.cpl *.msc) do if %%~z1 GTR 4096 (compact /c "%%1") for /R %SystemDrive%\ %%1 in (*.tsp *.mfl *.inc *.ini *.srt *.sub *.mid *.mod *.it *.xm *.cpp *.c *.h) do if %%~z1 GTR 4096 (compact /c "%%1") for /R %SystemDrive%\ %%1 in (*.hta *.wmdb *.cnv *.wpc *.edb *.sdb *.mdb *.clb *.mof *.crmlog brndlog.*) do if %%~z1 GTR 4096 (compact /c "%%1") for /R %SystemDrive%\ %%1 in (*) do if %%~z1 LEQ 4096 (compact /u "%%1") >nul ::Some tiny already compressed files _grow_ when compacted and waste space. So it's ::worth avoid compacting them. for /R %SystemDrive%\ %%1 in (*.txt *.bat *.reg) do if %%~z1 LEQ 736 (compact /c "%%1") >nul ::Files that might grow are given a chance to stay inside MFT del %windir%\Prefetch\compa*.pf