The MASM Forum

Miscellaneous => The Orphanage => Topic started by: Magnum on December 18, 2013, 01:41:47 PM

Title: Unnecessary XML files
Post by: Magnum on December 18, 2013, 01:41:47 PM
Windows XP stores a sh*t load of unnecessary xml files.

So I wrote this batch file to take care of it. :-)

del "C:\WINDOWS\pchealth\helpctr\DataColl\*.xml"
Title: Re: Unnecessary XML files
Post by: Tedd on December 19, 2013, 03:14:12 AM
Congratulations, you just gained less than 2 MB of disk space.
What amazing feats will you perform next?


If you're really struggling for disk space, you can gain an extra GB or two by removing the following:
- C:\WINDOWS\$NtUninstallKB*$ (folders and their contents)
- C:\WINDOWS\$hf_mig$\*.*
- C:\WINDOWS\KB*.log

I've never had any problems, but if you want to be extra safe, only remove those older than about 6 months.
Title: Re: Unnecessary XML files
Post by: dedndave on December 19, 2013, 03:43:21 AM
yah - those XML's tell windows how you have refined your previous help searches

the ones Tedd mentioned are ok to get rid of....
but, what i do is leave them on to make the disk image
then, when i restore the image, they are present if i want them - otherwise, i delete them
they are only necessary if you want to "undo" an update - which isn't usually a pretty picture anyways
Title: Re: Unnecessary XML files
Post by: Magnum on December 19, 2013, 09:07:30 AM
Quote from: Tedd on December 19, 2013, 03:14:12 AM
Congratulations, you just gained less than 2 MB of disk space.
What amazing feats will you perform next?


If you're really struggling for disk space, you can gain an extra GB or two by removing the following:
- C:\WINDOWS\$NtUninstallKB*$ (folders and their contents)
- C:\WINDOWS\$hf_mig$\*.*
- C:\WINDOWS\KB*.log

I've never had any problems, but if you want to be extra safe, only remove those older than about 6 months.

It has nothing to do with struggling with disk space.

I use 12 Gb out of 184 Gb.

I feel that if a file serves no useful purpose, get rid of it.

Andy
Title: Re: Unnecessary XML files
Post by: sinsi on December 19, 2013, 03:51:27 PM
Do NOT delete $hf_mig$, future hotfixes rely on it, linky (http://answers.microsoft.com/en-us/windows/forum/windows_xp-performance/can-i-delete-updateexe-file-in-cwindowshfmig/fb0e3f9d-80f9-40cf-a4d1-c2dfc9a8862e?msgId=f232c802-e8fe-4c27-9d6f-baee887f3d9b)

QuoteWhen a security update, critical update, update, update rollup, driver, or feature pack installs GDR version files, the hotfix files are also copied to the %windir%\$hf_mig$ folder. This supports migration to the appropriate files if you later install a hotfix or service pack that includes earlier versions of these files.
Title: Re: Unnecessary XML files
Post by: MichaelW on December 20, 2013, 01:06:17 AM
Quote from: Magnum on December 19, 2013, 09:07:30 AM
It has nothing to do with struggling with disk space.

I use 12 Gb out of 184 Gb.

I feel that if a file serves no useful purpose, get rid of it.

So it also has nothing to do with logic and reason.
Title: Re: Unnecessary XML files
Post by: Magnum on December 20, 2013, 01:17:30 AM
Your statement makes no sense.

Andy
Title: Re: Unnecessary XML files
Post by: dedndave on December 20, 2013, 03:49:30 AM
made perfect sense to me   :biggrin: