Windows 7 Forums


Windows 7: How can I list the folders, sub-folders & file names into a txt file?

23 Feb 2012  
rico67

Windows 7 Pro 64 bit
2 posts
 
 
How can I list the folders, sub-folders & file names into a txt file?

How am I able to list all the files & sub-folders into a text file? Need to document listings of files. could once do this in DOS but not sure if can anymore
Thx!

My System SpecsSystem Spec

23 Feb 2012  
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
47,741 posts
Texas
 
 

Hello Rico, and welcome to Seven Forums.

Using OPTION TWO in the tutorial below may work for you for this.

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

Hope this helps,
Shawn
My System SpecsSystem Spec
23 Feb 2012  
Dwarf

Windows 7 Ultimate x64 Service Pack 1
10,506 posts
Doncaster, UK
 
 

Sure, from a command prompt. Enter the following, at the prompt (you will need to provide both source and destination paths):

dir source /s >> destination.txt

e.g. dir c:\ /s >> "c:\users\<username>\desktop\list.txt"
My System SpecsSystem Spec
.


23 Feb 2012  
rico67

Windows 7 Pro 64 bit
2 posts
 
 

Great! thanks for the help. So Simple! . Didn't try the 1st solution, but will try it later. Glad those old DOS commands still work!

Regarding the dir command, using it in the active directory & gives me the file list (what I want) in the active.
dir /s >> list.txt
list.txt is placed in the active dir.
Muchas Gracias!
My System SpecsSystem Spec
23 Feb 2012  
Brink

64-bit Windows 7 Ultimate SP1 & Windows 8 Enterprise
47,741 posts
Texas
 
 

Glad we could help.
My System SpecsSystem Spec
23 Feb 2012  
BisVal

Win 7 Ult 64-bit
110 posts
 
 

There is a free portable program FileDir - I am using it for a long time an it still works fine.
My System SpecsSystem Spec
23 Feb 2012  
logicearth

Windows 7 x64 (SP1)
5,254 posts
 
 

*cough* "tree /A /F > tree.txt" also works.
My System SpecsSystem Spec
Reply

 How can I list the folders, sub-folders & file names into a txt file? problems?



Thread Tools



Similar help and support threads for: How can I list the folders, sub-folders & file names into a txt file?
Thread Forum
Deleting the Names in the File Name Drop Down List General Discussion
Consolidate Shortcut Folders/File Folders in Open Dialogue General Discussion
File folders and names with BC/AD dates General Discussion
How to display all audio file folders in detailed file view General Discussion
Folder view - list (file names cut off) General Discussion


All times are GMT -5. The time now is 07:37 AM.



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