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: How can I list the folders, sub-folders & file names into a txt file?

23 Feb 2012   #1
rico67

Windows 7 Pro 64 bit
 
 
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   #2
Brink
Microsoft MVP

64-bit Windows 10 build 10074
 
 

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   #3
Dwarf

Windows 8.1 Pro RTM x64
 
 

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   #4
rico67

Windows 7 Pro 64 bit
 
 

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   #5
Brink
Microsoft MVP

64-bit Windows 10 build 10074
 
 

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

Win 7 Ult 64-bit
 
 

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   #7
logicearth

Windows 8.1 Pro (x64)
 
 

*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?




Thread Tools





Similar help and support threads
Thread Forum
BULK creating of folders based on file names, and then moving files in
Hi Everyone, i have been looking for weeks for a way to do this and i have tried so many applications but i just cant seem to get it right, i was hoping that you guys my be able to help me out here with this one.. i have two folders, at the moment with identical file names in the ( they...
General Discussion
Deleting the Names in the File Name Drop Down List
Hi all: When I go to open a file in Windows Media Player (and indeed many other programs), there is a box to put in (or click on) the file name. On the right end of this box is a little down arrow which, when clicked, provides a drop-down list of previously opened files. A picture of what I am...
General Discussion
Consolidate Shortcut Folders/File Folders in Open Dialogue
I was wondering if there's a way to sort file folders and shortcut folders so they are listed together, as in previous OS versions. I find it frustrating that 7 has forced the shortcuts to be split up into their own category rather than their file properties. I prefer to sort my folders by type,...
General Discussion
File folders and names with BC/AD dates
I'm trying to create a set of directories that show art from various eras. I want them to appear in chronological order. Thus, I want the BC years to proceed backward to 0 and then forward again after AD. I've tried putting negative numbers in front of the dates but this doesn't seem to help. Any...
General Discussion
How to display all audio file folders in detailed file view
Thanks for the help I have already received from this friendly forum! How to force Windows 7 File Explorer to display ALL audio folder content as normal files in detailed view with file name/size/date and without title/artist/album.
General Discussion
Folder view - list (file names cut off)
Anyone else have this problem with long file names? When using the folder view of list, it cuts off the file name past a certain point. I've looked around and can't find a setting that allows me to modify this setting. In Vista and previous versions of Windows after switching to list view you...
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 14:56.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App