Jump to content


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.

Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.


List all files on a hard drive?

  • Please log in to reply
3 replies to this topic

#1 Tylerr


  • Members
  • 21 posts
  • Local time:11:46 AM

Posted 09 February 2012 - 08:08 AM

I know there is a command in dos that you could you use to list all files on a hard drive, however I cant remember what to type? I am on Windows 7.

BC AdBot (Login to Remove)


#2 moabutah


  • Members
  • 1 posts
  • Local time:11:46 AM

Posted 09 February 2012 - 08:13 AM

In the root directory of the hard drive you could try:

dir /s /b >list.txt

This will create a text file containing all the sub-directories and files.

#3 hamluis



  • Moderator
  • 56,300 posts
  • Gender:Male
  • Location:Killeen, TX
  • Local time:11:46 AM

Posted 09 February 2012 - 03:43 PM

Worth a look, http://www.infonautics.ch/directorylistprint/, click first link on right for freeware.


#4 jcgriff2


  • BSOD Kernel Dump Expert
  • 1,109 posts
  • Gender:Male
  • Location:New Jersey Shore
  • Local time:12:46 PM

Posted 09 February 2012 - 10:42 PM

Hi -

Bring up an elevated Admin command prompt -

START | type cmd.exe into the start search box | RIGHT-click on cmd.exe | select "Run as Administrator" | paste the following -
where /r c:\ *.* >0 & start notepad 0
It may take several minutes to run. A Notepad will open with the results.

Regards. . .


Microsoft MVP 2009-2015
Microsoft Windows Insider MVP 2018 - Present

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users