Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Search directory to give results of all 0 byte files

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,38950
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Search directory to give results of all 0 byte files
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Search directory to give results of all 0 byte files - 10/20/2006 5:26:54 AM   
  caryma77

 

Posts: 27
Score: 0
Joined: 9/19/2006
Status: offline
I am trying to write a script that will search a directory and return all files that have 0 bytes in size.  I search the forum and couldn't find anything to match what I am looking for.  I also searched the internet to see if there was any parameters I could use that would do this as well.  thanks in advance.
 
 
Post #: 1
 
 RE: Search directory to give results of all 0 byte files - 10/20/2006 5:38:23 AM   
  ebgreen


Posts: 5246
Score: 31
Joined: 7/12/2005
Status: offline
From your searching you should have found examples of iterating through all of the files in a folder. Each file object has a .Size property. All you need to do is iterate through the files and use an If-Then to test each file's .Size property to see if it is 0.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to caryma77)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Search directory to give results of all 0 byte files Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts