Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: List of Files

04 Aug 2010   #1

Windows 7 Pro
List of Files

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?


My System SpecsSystem Spec
04 Aug 2010   #2

Windows 7 Ultimate (x64)

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 System SpecsSystem Spec
04 Aug 2010   #3
Microsoft MVP

Windows 7 Ultimate 32bit SP1

File from

1. Go HERE 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 System SpecsSystem Spec

04 Aug 2010   #4

Windows 7 Pro

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 System SpecsSystem Spec
04 Aug 2010   #5

Windows 7 Ultimate x64

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 System SpecsSystem Spec

 List of Files

Thread Tools

Similar help and support threads
Thread Forum
How to list empty files using cmd.ext
Hello. I am in need of listing all the empty folders on a subfolder. Cmd.exe seems like it would be the perfect route to go. In the past, I have listed all the files in a directory to a text file. I am looking to do the same with empty folders, as I need to know if I'm missing audio,...
General Discussion
How to get a list of all files on one drive only
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.
General Discussion
List of REG Files
Hello, I was wondering if there was a list of REG files you offer and what each one does. I'm running a computer lab that consists of 10 computers that I want all settings to be exact. I've changed a few REG files already, but right now I'm wondering if there was a list of all the REG files...
FTP Files List to Text
I need a temporary solution to copy a selected list of files via ftp as text to notepad ? My current FTP client can't do this.
List Files in Folder With Ignore List
Edit: Sorry I made the topic an forgot to change the title. Should be: "List Files in Folder With Ignore List" or something along those lines. I'm a game server admin. What I want to do is generate a text file which will be used when I launch the server. An example of the text file I want to...
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 11:40.
Twitter Facebook Google+