NanoTech-kw · Tech Guide Library

DIR CMD (Directory (list files and folders))

Windows · CMD

List files and folders in a directory, with optional filters. Syntax: dir [path] [/a] [/s] [/b]

Step-by-step

  1. Open Command Prompt (press Win+R, type cmd, and press Enter)
  2. Syntax: dir [path] [/a] [/s] [/b]
  3. Brief: List files and folders in a directory, with optional filters.
  4. Example: dir C:\Windows\System32 /b | more
  5. Tip: dir /s searches subfolders; dir /a shows hidden and system files.

Reference: learn.microsoft.com

Open in the NanoTech-kw library →