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?

Cheers

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 SP1, Home Premium, 64-bit
 
 

DOS??

My DOS skills have atrophied.

What was it?

dir>prn

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

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro Preview with Media Center
 
 

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:
Code:
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:
Code:
dir C:\Users\YourUserName\Videos\ >C:\Users\YourUserName\Videos.txt /s /oe /ta
Kari
My System SpecsSystem Spec
27 Dec 2010   #5

Windows 7 ultimate x86
 
 

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

 Extract names of items of some folder





Thread Tools



Similar help and support threads for2: Extract names of items of some folder
Thread Forum
Recent Items folder not keeping items more than 48 hours Installation & Setup
How to extract from rar and maintain original folder dates? General Discussion
Use folder names rather than file names Media Center
Cannot extract each archive to separate folder in search results General Discussion
help - how do i extract items from themes? Themes and Styles
Solved Folder and file names appear in color? General Discussion
Change default extract folder 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 10:20 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