- Open a command prompt on the server and type for /R %I in (*.*) do if "0"=="%~zI" echo del /f /q "%~fI" >> c:\zerosizefiles.bat
- Look through your zerosizefiles.bat file to make sure nothing important will get deleted.
- Run the zerosizefiles.bat file.
Pretty cool use of the command line, eh?
***
Mitch Tulloch is lead author for the Windows Vista Resource Kit from Microsoft Press, which is THE book for IT pros who want to deploy, maintain and support Windows Vista in mid- and large-sized network environments. Mitch is also the author of Introducing Windows Server 2008, the first book from Microsoft Press about the exciting new server platform. For more information on these and other books written by Mitch, see www.mtit.com.