Re: Script to delete 0K files in a directory? by Jeffery
Jeffery
Thu Nov 09 13:48:12 CST 2006
On Thu, 9 Nov 2006 12:32:59 -0600, Dean Slindee wrote:
> Anybody written a script to delete all files within a given folder that are
> 0K or 1K in size?
>
> Never written a script, where should I start?
>
> Dean S
Use the FileSystemObject to connect to a folder. Get the files. Enumerate
through the collection of files and get the file size. If it meets your
criteria, delete it.
--
Jeffery Hicks - www.ScriptingAnswers.com
SAPIEN Technologies - Scripting, Simplified. www.SAPIEN.com
Scripting books: www.SAPIENPress.com