PDF download Download Article
View every file on your computer
PDF download Download Article

Do you want to see every file on your computer? Maybe there are some files you need that are missing, or maybe you just want to ensure there aren't unfamiliar files on your system. Regardless of your reasons for listing every file on your computer, you can use a command in Command Prompt (cmd) on Windows 10/11 computers to see a list of all files on your hard drive.

Easily List Every File on Your Computer

Open Command Prompt as an administrator, type "cd C:\", and press "Enter" to navigate to the root of your C drive. Type "dir /s" and press "Enter" to list every file on the drive.

  1. Type "Command Prompt" in your Start menu and right-click the "Command Prompt" result to open another menu. Select Run as administrator.
  2. Use the cd command to enter the root of your main drive. For example, if you want to list every file on your C drive, type cd C:\ and press Enter.
    Advertisement
  3. This will show you every file on the drive in the Command Prompt window. You can also use additional parameters with the dir command to change what you see. Some popular parameters and their uses are:
    • dir /s /a:[attributes] displays files with specified attributes.
      • For example, dir /s /a:h lists hidden files, and dir /s /a:d shows directories.[1]
    • dir /s /b shows the files in bare format (no headers or summary).
    • dir /s /o:[order] specifies the order to display the files.
      • dir /s /o:n displays files in alphabetical order.
      • dir /s /o:d displays files oldest to newest.
      • dir /s /o:s sorts files smallest to largest.
      • dir /s /o:-s sorts files largest to smallest.
    • Enter dir /s /a:hs /q C:\Windows > myfile.txt to send the results to a text file instead of viewing them in the Command Prompt window. You can open that file with Notepad to read it, or you can type type myfile.txt.[2]
  4. Advertisement

Community Q&A

Search
Add New Question
  • Question
    How do I list all of my computer files with Windows 10?
    Community Answer
    Community Answer
    For Windows 10, follow these instructions: Hold the windows key and press "r," type in "cmd" and then press enter, type in "cd ../.." and then press enter, type in "tree" and then press enter. This will usually show all of the files on your hard drive.
Ask a Question
200 characters left
Include your email address to get a message when this question is answered.
Submit
Advertisement

Tips

Submit a Tip
All tip submissions are carefully reviewed before being published
Name
Please provide your name and last initial
Thanks for submitting a tip for review!
Advertisement

About This Article

Darlene Antonelli, MA
Written by:
wikiHow Technology Writer
This article was co-authored by wikiHow staff writer, Darlene Antonelli, MA. Darlene has been writing and editing tech content at wikiHow since 2019. She previously worked for AppleCare, served as a writing tutor, volunteered in IT at an animal rescue, and taught as an adjunct professor for EN101 and EN102. Darlene has completed Coursera courses on technology, writing, and language. She holds both a BA (2011) and an MA (2012) from Rowan University in Writing, with a focus on workplace communication. With her extensive experience, academic background, and ongoing learning, Darlene has become the go-to grammar expert for her friends and family, as well as a skilled wordsmith for anyone in need. This article has been viewed 112,629 times.
How helpful is this?
Co-authors: 10
Updated: January 15, 2025
Views: 112,629
Categories: Hard Drives
Thanks to all authors for creating a page that has been read 112,629 times.

Is this article up to date?

Advertisement