'dir' outputs more directories than there actually are


brigby

New member
Local time
6:08 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
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    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, 2TB WDC 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 23H2 22631.3447
    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
    1tb Solidigm m.2 +256gb ssd+512 gb usb m.2 sata
    PSU
    500w
    Case
    MT
    Cooling
    Dell Premium
    Keyboard
    Logitech wired
    Mouse
    Logitech wireless
    Internet Speed
    so slow I'm too embarrassed to tell
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
  • Operating System
    Windows 10 Pro 22H2 19045.3930
    Computer type
    PC/Desktop
    Manufacturer/Model
    Dell Optiplex 9020
    CPU
    i7-4770
    Memory
    24 gb
    Monitor(s) Displays
    Benq 27
    Screen Resolution
    2560x1440
    Hard Drives
    256 gb Toshiba BG4 M.2 NVE SSB and 1 tb hdd
    PSU
    500w
    Case
    MT
    Cooling
    Dell factory
    Mouse
    Logitech wireless
    Keyboard
    Logitech wired
    Internet Speed
    still not telling
    Browser
    Firefox
    Antivirus
    Defender+MWB Premium
Forgot the links for reference.
 

My Computers

System One System Two

  • OS
    Win11 Pro RTM
    Computer type
    Laptop
    Manufacturer/Model
    Dell Vostro 3400
    CPU
    Intel Core i5 11th Gen. 2.40GHz
    Memory
    12GB
    Hard Drives
    256GB SSD NVMe
  • Operating System
    Windows 11 Pro RTM x64
    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, 2TB WDC 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

Latest Support Threads

Back
Top Bottom