Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WMI or VB Script query?

Status
Not open for further replies.

bowwow

IS-IT--Management
Jun 11, 2002
60
GB
Hi All,

Im looking for a script which will allow me to check for any files within a specific (local) folder which are 0 size in bytes. If any are found, too then log an Event.

Script needs to be either WMI or VB.

Any help much appreciated.
Cheers
B
 
check out the FileSystemObject, File object and File.Size property, EventLog
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top