List of Files

huffman

New member
In Windows XP and I believe it worked in Vista there was a command line prompt to create a txt file listing all the subfolders and files for a directory.

DIR "I:\" /s > "C:\List.txt"

This is the prompt I use in Win XP and it works and creates a txt file with a list on my C drive.


I have tried this in Windows 7 and it does not work.

Does anyone know how to tweak this prompt so that it works in Win 7?

Thanks
 

My Computer

OS
Windows 7 Pro
CPU
Intel(R) Pentium(R) Duel CPU E2200 2.20 Ghz
Motherboard
GA-G41M-ES2L
Memory
4 gb 2.96 Usable
Graphics Card(s)
Onboard
Sound Card
Onboard
Hard Drives
2 - 1TB WD Sata Drives
The command that you mention works perfectly on my system.

The possible problem for you could be the fact that you might not have permissions to write to C:\ - in my case I was testing your command on E:\ drive.
 

My Computer

Computer Manufacturer/Model Number
Dell Inspiron 530
OS
Windows 7 Ultimate (x64)
CPU
Q6600
Memory
8 GB
Graphics Card(s)
ATI Radeon HD 2600 XT
Monitor(s) Displays
Samsung Syncmaster P2450
Screen Resolution
1920x1080
Hard Drives
Samsung HD103UJ
Samsung HD501LJ
Internet Speed
25 Mb/s
File Lister.zip from bamajim.com

1. Go HERE http://bamajim.com/Tools/FileLister.zip and download File Lister.
Save it to your Desktop
Rt Click ->> Extract all ->> And extract it to your Desktop
Open the File Lister Folder.
Note: Leave the FileLister.vbe file in the folder and run it from there.
Rt Click FileLister.vbe ->>Select Open Then Open to confirm.
As the program runs, it will appear that nothing is happening.
When the program is finished it will produce a log for you C:\Files.txt
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Bruce ... somewhere in his 40's
OS
Windows 7 Ultimate 32bit SP1
CPU
Intel(R) Core(TM)2 Quad CPU @ 2.40GHz, 2400 MHz
Motherboard
INTEL/D975XBX2
Memory
4 GB
Graphics Card(s)
ATI Radeon HD 2600 Pro
Monitor(s) Displays
Samsung SyncMaster 914v
Screen Resolution
1280 x 1024
Hard Drives
2/500GB each ... ST3500630AS ATA Device.
One is not connected
PSU
Rocketfish 700 W
Case
G.Skill Gigabyte Chassis
Keyboard
Standard PS/2 Keyboard
Mouse
Microsoft PS/2 Mouse
Internet Speed
DSL
Antivirus
Avira Internet Security
Browser
IE 11
Other Info
ATI HDMI Audio
Thanks of the responses.

The possible problem for you could be the fact that you might not have permissions to write to C:\

That was the problem I guess. I changed where to create the List.txt file to D drive and it worked.

FileLister I gave a try but as far as I could tell it only listed things for C drive.

Thanks again
 

My Computer

OS
Windows 7 Pro
CPU
Intel(R) Pentium(R) Duel CPU E2200 2.20 Ghz
Motherboard
GA-G41M-ES2L
Memory
4 gb 2.96 Usable
Graphics Card(s)
Onboard
Sound Card
Onboard
Hard Drives
2 - 1TB WD Sata Drives
What you can also do is modify you command (I'm using your example) to:

DIR I:\ /s | CLIP

This will all you to use the command line like you always have, but it redirects the output to the Windows Clipboard from which you can paste it into just about any document.

AND it eliminuates the need for you to install, learn, and use a third-party program...
 

My Computer

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
Back
Top