Solved How to get a list of all files on one drive only

donnyb

New member
Member
VIP
Local time
12:29 PM
Messages
153
This seems so simple, but I don't see how to do it. I want to have a list of all files on my C: drive or maybe on my D: drive, etc. In the old days it was DIR *.*
I am using Win 7 - 64.
 

My Computer My Computer

At a glance

Win 7 x64i7 920 @ 4Ghz6 GbATI 4770
OS
Win 7 x64
CPU
i7 920 @ 4Ghz
Motherboard
Asus P6T Deluxe v2
Memory
6 Gb
Graphics Card(s)
ATI 4770
Hard Drives
1 ea 750 GB
1 ea 1TB
1 ea 750 GB
1 ea 750 GB
No Raid, all SATA
PSU
Corsair TX750
Case
Coolermaster ATCS 840
Cooling
Prolimatech Megahalem
Internet Speed
30
Dir *.* /s

Put the kettle on it might take a while ;)
 

My Computer My Computer

At a glance

Windows 7 Ultimate 64bitAMD Phenom Quad core 9950 black edition16Gb2x XFX Radeon 5850
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self Built
OS
Windows 7 Ultimate 64bit
CPU
AMD Phenom Quad core 9950 black edition
Motherboard
Gigabyte
Memory
16Gb
Graphics Card(s)
2x XFX Radeon 5850
Sound Card
PCI Express X-Fi Titanium / Logitech G35
Monitor(s) Displays
2x HP 2410i
Screen Resolution
1920x1080
Hard Drives
2x 500Gb Seagate
1x 300Gb Seagate
1x 1Tb Seagate
2x 1Tb Hitatchi
PSU
Jean Tech Storm 700W
Case
Cooler Master COSMOS S
Cooling
Akasa Evo Blue Pro
Keyboard
Logitech G15
Mouse
Mad Catz M.M.O. 7
Internet Speed
12mb
Dir *.* has always shown only the files and subfolders of the current folder. If you also want to see all files in the subfolders, the command is dir /s. Because this command shows everything, wildcard *.* is not needed.

I use this freeware to do it more elegantly.

Kari
 

My Computer My Computer

At a glance

Windows 10 Pro x64 EN-GB1.6 GHz Intel Core i7-720QM Processor6 GBATI Mobility Radeon HD 5850 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11
Hello Donny,

In addition, you might find this below helpful for this. It will add View File Directory to the context menu so that you can right click on the C: drive in Computer and click on View File Directory to see every file listed. You also have the option to Print File Directory.

Context Menu - Add View and Print File Directory - Vista Forums

Hope this helps,
Shawn
 

My Computer My Computer

At a glance

64-bit Windows 11 Pro for WorkstationsIntel i7-8700K OC'd to 5 GHz64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600...ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Self built custom
OS
64-bit Windows 11 Pro for Workstations
CPU
Intel i7-8700K OC'd to 5 GHz
Motherboard
ASUS ROG Maximus XI Formula Z390
Memory
64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz
Graphics Card(s)
ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
Sound Card
Integrated
Monitor(s) Displays
2 x Samsung Odyssey G7 27"
Screen Resolution
2560x1440
Hard Drives
1TB Samsung 990 PRO M.2,
4TB Samsung 990 PRO PRO M.2,
TerraMaster F8 SSD Plus NAS
PSU
Seasonic Prime Titanium 850W
Case
Thermaltake Core P3
Cooling
Corsair Hydro H115i
Keyboard
Logitech wireless K800
Mouse
Logitech MX Master 4
Internet Speed
2 Gb/s Download and 100 Mb/s Upload
Antivirus
Malwarebyte Anti-Malware Premium
Browser
Google Chrome
Other Info
Logitech Z625 speaker system,
Logitech BRIO 4K Pro webcam,
HP Color LaserJet Pro MFP M477fdn,
APC SMART-UPS RT 1000 XL - SURT1000XLI,
Galaxy S23 Plus phone
This seems so simple, but I don't see how to do it. I want to have a list of all files on my C: drive or maybe on my D: drive, etc. In the old days it was DIR *.*
I am using Win 7 - 64.

Try this (all commands in quotes should be typed without the quotes):
  1. Press <WINDOWS_KEY>+<R> to open the Run box
  2. type "CMD", and press <ENTER> to launch the command line utility
  3. Type "D:" and press <ENTER> to go to that drive (Change D to whatever drive letter you need - provided that the drive exists, of course)
  4. type "CD\" and press <ENTER> to go to the root folder of the drive
  5. Now, here is where this get interesting. Use one of the following:
To get a file listing that include such things as file dates, sizes, etc, type the following command, followed by <ENTER>
  • "DIR *.* /s"
This could take awhile, so be patient. If all you want is a raw list of files, then use the following command, which shows all files with fully-qualified pathnames in the list:
  • "DIR *.* /s /b"
If you want to have the listing sorted, just add "/ogen" to either of the above commands ("/o" tells dirs to sort the list, "g" puts folders at the top, "e" sorts by extension, "n" by name - in that order). For example:
  • "DIR *.* /s /b /ogen"
If you want to include hidden files/folders, just add "/a". For example:
  • "DIR *.* /s /b /ogen /a"
If you only want to see folders, then add "/d" to the command (really usefull only if you are using "/b" also:
  • "DIR *.* /s /b /d"
It is also possible to redirect the output to file or the clipboard, regardless of which of the above forms of DIR you use:
  • "DIR *.* /s /b >LIST.TXT" will create a text file named LIST.TXT in the current folder, and will contain the desired output of the DIR command. You can specify you own filename if you like, just remember to enclose the filename in quotes if it contains spaces, For example "DIR *.* >"Files List.txt""
  • "DIR *.* /s /b | CLIP" will send the output of the DIR command to the windows clipboard.
If you want more information on DIR, use the following command to display all available command-line switches:
  • "DIR /?"
This may sound extremely odd, but I use the DIR command alot when I need a list of files that I can paste into Excel when I want to do a once-off processing of the files to maybe cretae a batch file to rename or copy them, and the task at hand does not warrant the creation of a program in Delphi.
 

My Computer My Computer

At a glance

Windows 7 Professional 32-bit SP1AMD A4/A63.00GB EDOVMware SVGA 3D
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Virtual Machine
OS
Windows 7 Professional 32-bit SP1
CPU
AMD A4/A6
Motherboard
Intel Corporation 440BX Desktop Reference Platform
Memory
3.00GB EDO
Graphics Card(s)
VMware SVGA 3D
Sound Card
High Definition Audio Device
Monitor(s) Displays
Generic Non-PnP Monitor on VMware SVGA 3D
Screen Resolution
1440x900
Hard Drives
1 x 60GB VMware Virtual SATA Hard Drive ATA Device
Antivirus
Kaspersky Total Security
Guys, it's not a big deal but I'll say it once more: the wildcards *.* (every file & folder with any extension) are not needed with DIR /S command. The /S switch already tells computer to show all files and folders.

Kari
 

My Computer My Computer

At a glance

Windows 10 Pro x64 EN-GB1.6 GHz Intel Core i7-720QM Processor6 GBATI Mobility Radeon HD 5850 Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
HP ENVY 17-1150eg
OS
Windows 10 Pro x64 EN-GB
CPU
1.6 GHz Intel Core i7-720QM Processor
Memory
6 GB
Graphics Card(s)
ATI Mobility Radeon HD 5850 Graphics
Sound Card
Beats sound system with integrated subwoofer
Monitor(s) Displays
17" laptop display, 22" LED and 32" Full HD TV through HDMI
Screen Resolution
1600*900 (1), 1920*1080 (2&3)
Hard Drives
Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media
Cooling
As Envy runs a bit warm, I have it on a Cooler Master pad
Keyboard
Logitech diNovo Media Desktop Laser (bluetooth)
Mouse
Logitech Performance Mouse MX
Internet Speed
50/10 Mbps VDSL
Antivirus
Windows Defender 4.3.9431.0
Browser
Maxthon 3.5.2., IE11

My Computer My Computer

At a glance

Win 7 x64i7 920 @ 4Ghz6 GbATI 4770
OS
Win 7 x64
CPU
i7 920 @ 4Ghz
Motherboard
Asus P6T Deluxe v2
Memory
6 Gb
Graphics Card(s)
ATI 4770
Hard Drives
1 ea 750 GB
1 ea 1TB
1 ea 750 GB
1 ea 750 GB
No Raid, all SATA
PSU
Corsair TX750
Case
Coolermaster ATCS 840
Cooling
Prolimatech Megahalem
Internet Speed
30
Get Everything here . . and awesome program . . when you run it, it starts by listing every file on a hard drive, or on all your internal and external drives . . enter a file name and it will look it up . . I use it constantly.
 

My Computer My Computer

At a glance

Windows 7 Home Premium Version 32 bitIntel Core2 Duo CPU E7200 2.53GHz, 2534 Mhz4 GB
Computer Manufacturer/Model Number
Dell Vostro 200
OS
Windows 7 Home Premium Version 32 bit
CPU
Intel Core2 Duo CPU E7200 2.53GHz, 2534 Mhz
Memory
4 GB
Monitor(s) Displays
22" flat panel
Hard Drives
ST3250310AS ATA Device
Back
Top