troubleshooting Question

How to find all zero-byte files in a directory including subdirectories from Command Line ?

Avatar of Rabihhaj
RabihhajFlag for Australia asked on
Active DirectoryWindows Server 2008Windows 7* commands
3 Comments1 Solution147 ViewsLast Modified:
How to find all zero-byte files in a directory including subdirectories from Command Line
Look like our file server is affected with virus.
We would like to export all the entire 0KB size files from our server that has hundreds if not thousands of sub-directories and contain files with 0 KB.
Is there a way to do this from the command line?
Prefer a script to export all of them to CSV file. Including the name of the file, Location and date if possible.
Could you please tell me what causing these file to get corrupted with 0KB. How can we fix that or find the route of this issue.

Thank you in advance
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 3 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros