'dir' outputs more directories than there actually are


brigby

New member
Local time
5:02 AM
Posts
2
OS
Windows 11
I uninstalled Firefox, in order to reinstall it later. I've been removing leftovers with del and then rmdir, in addition to double-checking with dir and attrib beforehand. But now I'm confused. There are more total directories listed in cmd than what I'm seeing in File Explorer. Why is this? Not sure if there's something wrong with this folder or if I lack understanding of the commands I'm using.

Things I've tried: sfc and dism; chkdsk; adwbytes; unchecking all hidden file options. Windows is up to date. What am I missing? I'd prefer a solution that doesn't involve downloading more stuff.
 
Windows Build/Version
22H2 22621.963

My Computer

System One

  • OS
    Windows 11
It's quite possible a number of Folders in Windows are Hidden versus what shows in Directories [the term that was used in DOS running Windows as the GUI]. A lot of the old DOS commands still work in Command Prompt and some in PowerShell/Terminal but not as many. Some times in Windows a choice on right-click and Properties of a Folder will have close to the same totals as DOS's Dir. For more about the DOS features put dir /? in a command prompt window, will find more commands and switches for them but pay attention to where a space is shown, especially before the / forward slash.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM Version 24H2 Build 26100.4202
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Win11 Pro RTM Version 24H2 Build 26100.4202
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Because some files and folders are hidden until you allow them.
control panel>file explorer options>view tab>put a check by "show hidden files, folders, drives" You can also show/hide protected operating system files there which is not advisable. BE CAREFUL.
 

My Computers

System One System Two

  • OS
    Windows 11 Pro 24H2 26100.4061
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 7080
    CPU
    i9-10900 10 core 20 threads
    Motherboard
    DELL 0J37VM
    Memory
    32 gb
    Graphics Card(s)
    none-Intel UHD Graphics 630
    Sound Card
    Integrated Realtek
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    2x1tb Solidigm m.2 nvme /External drives 512gb Samsung m.2 sata+2tb Kingston m2.nvme
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    #1 Edge #2 Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 11 Pro 24H2 26100.4061
    Computer type
    PC/Desktop
    Manufacturer/Model
    Beelink Mini PC SER5
    CPU
    AMD Ryzen 7 6800U
    Memory
    32 gb
    Graphics card(s)
    integrated
    Sound Card
    integrated
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Crucial nvme
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    still too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender
    Other Info
    System 3 is non compliant Dell 9020 i7-4770/24gb ram Win11 PRO 26100.4061

My Computers

System One System Two

  • OS
    Win11 Pro RTM Version 24H2 Build 26100.4202
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe M.2
  • Operating System
    Win11 Pro RTM Version 24H2 Build 26100.4202
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Vostro 5890
    CPU
    Intel Core i5 10th Gen. 2.90GHz
    Memory
    16GB
    Graphics card(s)
    Onboard, no VGA, using a DisplayPort-to-VGA adapter
    Monitor(s) Displays
    24" Dell
    Hard Drives
    512GB SSD NVMe, 4TB Seagate HDD
    Browser
    Firefox, Edge
    Antivirus
    Windows Defender/Microsoft Security
Some times in Windows a choice on right-click and Properties of a Folder will have close to the same totals as DOS's Dir. For more about the DOS features put dir /? in a command prompt window, will find more commands and switches for them but pay attention to where a space is shown, especially before the / forward slash.
It was a folder in ProgramData. In Properties, it said 0 Files, 1 Folders. This reflected what I was seeing, i.e. a single, empty subfolder (whose Properties said 0 Files, 0 Folders). I ran dir with various parameters, each one listing a different number of directories. For example, dir said 2, dir /a said 3, dir /s said 4, dir /a /s said 5.
 

My Computer

System One

  • OS
    Windows 11
Back
Top Bottom