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.

Quote:
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 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 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 System SpecsSystem Spec
.


04 Aug 2010   #4

Windows 7 Pro
 
 

Thanks of the responses.

Quote:
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:

Quote:
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
Reply

 List of Files





Thread Tools



Similar help and support threads for2: List of Files
Thread Forum
Solved How to get a list of all files on one drive only General Discussion
Solved List of REG Files Customization
FTP Files List to Text Software
Explorer - Making new files appear at the end of the list (like XP)? General Discussion
List of windows boot files General Discussion
List Files in Folder With Ignore List General Discussion
DOS - list files in folders without path 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 03:25 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33