Dim objFSO, objFile, objFolder
Set objFSO = CreateObject("Scripting.FileSystemObject")
'enumerate through the files in the folder
'we've been given, for each file, delete it.
For Each objFile In objFSO.GetFolder(strPath).Files
if objFile.Size < 1K then
objFile.Delete
end if
Next
Can someone tell me how to change the "If objFile.Size < 1K Then" to a valid
syntax. (I don't write scripts and this would work fine given a correct If
clause).
Thanks,
Dean S