BleepingComputer.com: List all files on a hard drive?

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

List all files on a hard drive?

#1 User is offline   Tylerr 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 21
  • Joined: 06-February 12

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.

#2 User is offline   moabutah 

  • New Member
  • Pip
  • Find Topics
  • Group: Members
  • Posts: 1
  • Joined: 09-February 12

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 User is offline   hamluis 

  • Forum Addict
  • PipPipPipPipPipPip
  • Find Topics
  • Group: Moderator
  • Posts: 31,466
  • Joined: 03-September 05
  • Gender:Male
  • Location:Killeen, TX

Posted 09 February 2012 - 03:43 PM


#4 User is offline   jcgriff2 

  • Member
  • PipPip
  • Find Topics
  • Group: Members
  • Posts: 52
  • Joined: 09-May 08
  • Gender:Male
  • Location:New Jersey

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. . .

jcgriff2

Posted Image
J. C. Griffith
Microsoft MVP
Windows Expert - Consumer

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users