Be careful though – some of these delete metadata or files without much warning. Make sure you’re doing what you intend to do.
Teridon’s site has a nice library of tools available in an executable package.
Apple released a few sample scripts with the iTunesCOMWindowsSDK package of developer header files.
- RemoveDeadTracks.js – I’ve found this one especially useful.
Moreover, the methods for developing custom scripts are very approachable in case these scripts don’t do quite what you need.