Indicating when a file is "empty"

Rhessing 1 Reputation point
2022-04-14T12:13:31.673+00:00

Hi.

In the estimating world I deal with a variety of different vendors to which I could receive multiple files each. I keep a blank default folder for my vendor quotes, and within that folder i have sub-folders for each budget group that are "empty" (and by empty I mean with no files rather than no folders). I use the same structure for every project, and not every project will have the need for files in every budget group.

Is there a way to shade or identify the empty (file-less) folders so that I can still use and see the structure but know when a folder (budget group) has been used and don’t go down an empty path looking for something? Thanks in advance.

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,316 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Eleven Yu (Shanghai Wicresoft Co,.Ltd.) 10,726 Reputation points Microsoft Vendor
    2022-04-24T04:02:34.43+00:00

    Hi,

    You can quickly find the empty folders using below method.

    Press Win + E to open File Explorer.
    Click on the Search Tab to open the Search Menu
    Set the Size filter to Empty, and be sure that the All subfolder feature is checked
    195779-image.png
    After the search ends, it will display all files and folders that do not take up any memory space

    Best regards,

    ----------

    If the Answer is helpful, please click "Accept Answer" and upvote it. Thanks.

    0 comments No comments

  2. MotoX80 32,911 Reputation points
    2022-04-24T15:49:55.807+00:00

    Depending on your folder structure, a Powershell script might work.

    Get-ChildItem 'C:\Program Files\' -directory | foreach {
        [PSCustomObject] @{
            'File Count' = (Get-ChildItem $_.FullName -recurse -file).count
            Folder = $_.FullName
            }
    } | Out-GridView
    

    Put your folder name in that and save it somewhere. Ex: c:\Scripts\Analyze.ps1. Create a RunIt.bat file that calls the script.

    powershell.exe c:\scripts\Analyze.ps1
    

    Then just double click on the bat file to run it.

    0 comments No comments