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: Extract names of items of some folder

27 Dec 2010   #1

Windows 7 ultimate x86
Extract names of items of some folder

Hi friends.
Could you introduce me a software that can extract the names of items of a folder and save it somewhere for example in a txt or doc or another type of file?


My System SpecsSystem Spec
27 Dec 2010   #2

Windows 7 Enterprise

You can do this with the dos command 'dir' and pipe ( > ) it to a txt document in the same folder.
Such as to get content listing of your musics folder, open the folder in command prompt (rclick, open command prompt here), then type:
dir > list.txt
You can also filter it for specific extensions:
dir *.mp3 > list.txt
and troll through subfolders with the /s switch
dir /s *.mp3 > list.txt
type dir /? for more info on that command if you are unfamiliar with it.
My System SpecsSystem Spec
27 Dec 2010   #3

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium SP1, 64-bit


My DOS skills have atrophied.

What was it?


Something like that.

Or maybe:

Go to folder and open a DOS prompt. Type "dir /b > dir.txt" (without the quotes) and hit enter. This will put a list of the contents of the folder in a file called dir.txt, which you can print by loading it into Notepad, Word, Excel etc.

Or maybe:

Karen's Directory Printer
My System SpecsSystem Spec

27 Dec 2010   #4


A couple more command examples.

Make a list of all files in your Documents folder, sorting it alphabetically, leaving away dates and file sizes, not listing any folders. Save results to file Document.txt in your user folder:
dir C:\Users\YourUserName\Documents\ >C:\Users\YourUserName\Documents.txt /b /on /a-d
Make a list of all files in your Videos folder and its subfolders, sorting it alphabetically with date and time when each file was last time accessed. Save results to file Videos.txt in your user folder:
dir C:\Users\YourUserName\Videos\ >C:\Users\YourUserName\Videos.txt /s /oe /ta
My System SpecsSystem Spec
27 Dec 2010   #5

Windows 7 ultimate x86

I appreciate you,friends.
thank you
My System SpecsSystem Spec

 Extract names of items of some folder

Thread Tools

Similar help and support threads
Thread Forum
Does Windows save logs somewhere that shows folder names / file names?
Probably it doesn't and my question is a long shot - but I recently toasted a drive, and it had many folders and files which I have little memory of. I also never used one of those nice apps that makes a list. Any help appreciated. Much obliged. Tt
General Discussion
Recent Items folder not keeping items more than 48 hours
I have recently had to have Windows 7 reinstalled. Since then my jump lists hardly contain any items. The max No. of items is set to 20, but they never get anywhere close. Now I have discovered that my Recent Items folder C:\Users\(User Name)\AppData\Roaming\Microsoft\Windows\Recent Items ...
Installation & Setup
How to extract from rar and maintain original folder dates?
Seemes to be another w7 annoyance ... How to extract from rar and maintain original folder dates? I have a memory stick which I need to copy to other USB stick with original folder creation dates. I have created a rar from original USB stick with original folder dates but when trying to unrar,...
General Discussion
help - how do i extract items from themes?
Hi, I'll try to simplify the best i can, i have a theme from which i'd like to extract both aero windows and taskbar, but keep other options intact (which was exactly what i had when i applied the theme, before all other theme resource changes and .exe's). Also in other situation i'd like to...
Themes and Styles
Change default extract folder
I often download files to a default folder of C:\My Downloads and then using the Windows 7 extract function extract the files to C:\Hold (my own created folder) to proceed with installation of a program etc. then I come back and delete all the files after finishing up. The extract function in...
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 09:38.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App