View Full Version : Create a text file of a folders content
mtvjock
December 11th 03, 10:17 PM
Is it possible to create or send to a text file, all the titles/names of
files inside a folder? If so, will somebody please respond with the
process? Thank you!
Mike Frazier
Jason Hurlburt
December 11th 03, 10:17 PM
Go to run, type cmd and then type:
"dir > nameoffile.txt" in the command window. If you want a list of all
subdirectories as well, type "dir /s >nameoffile.txt". The text file will
appear in the directory you were in when you ran the command.
-Jason
"mtvjock" > wrote in message
thlink.net...
> Is it possible to create or send to a text file, all the titles/names of
> files inside a folder? If so, will somebody please respond with the
> process? Thank you!
>
> Mike Frazier
>
>
Synapse Syndrome
December 11th 03, 10:18 PM
"mtvjock" > wrote in message
thlink.net...
> Is it possible to create or send to a text file, all the titles/names of
> files inside a folder? If so, will somebody please respond with the
> process? Thank you!
>
PrintFolder 1.2 (at the bottom)
http://no-nonsense-software.com/freeware/
There is a Pro version that is better, but not free.
ss.
Bruce Sanderson
December 11th 03, 10:19 PM
You might also want to try the "tree" command.
--
Bruce Sanderson MVP
It's perfectly useless to know the right answer to the wrong question.
"mtvjock" > wrote in message
thlink.net...
> Is it possible to create or send to a text file, all the titles/names of
> files inside a folder? If so, will somebody please respond with the
> process? Thank you!
>
> Mike Frazier
>
>
T.C.
December 11th 03, 10:20 PM
This following from an MS KB aritcle worked for me:
Microsoft Knowledge Base Article - 321379
HOW TO: Add a "Print Directory" Feature for Folders in Windows XP
The information in this article applies to:
Microsoft Windows XP Home Edition
Microsoft Windows XP Professional
This article was previously published under Q321379
IMPORTANT: This article contains information about modifying the registry.
Before you modify the registry, make sure to back it up and make sure that
you understand how to restore the registry if a problem occurs. For
information about how to back up, restore, and edit the registry, click the
following article number to view the article in the Microsoft Knowledge
Base:
256986 Description of the Microsoft Windows Registry
IN THIS TASK
SUMMARY
Create the Printdir.bat File
Create a New Action for File Folders
Edit the Registry
SUMMARY
This article describes how to add a "print directory" feature for folders in
Windows XP. After you follow the steps in this article, you can right-click
a folder, and then click Print Directory Listing to print a directory
listing of the folder's contents.
Create the Printdir.bat File
To create the Printdir.bat file:
Click Start, click Run, type notepad, and then click OK.
Paste the following text into Notepad:
@echo off
dir %1 /-p /o:gn > "%temp%\Listing"
start /w notepad /p "%temp%\Listing"
del "%temp%\Listing" exit
On the File menu, click Exit, and then click Yes to save the changes.
In the Save As dialog box, type %windir%\Printdir.bat, and then click Save.
Create a New Action for File Folders
Click Start, click Control Panel (or, point to Settings, and then click
Control Panel), and then click Folder Options.
On the File Types tab, click File Folder.
Click Advanced, and then click New.
In the Action box, type Print Directory Listing.
In the Application used to perform action box, type printdir.bat, and then
click OK.
Click OK, click OK, and then click Close.
back to the top
Edit the Registry
WARNING: If you use Registry Editor incorrectly, you may cause serious
problems that may require you to reinstall your operating system. Microsoft
cannot guarantee that you can solve problems that result from using Registry
Editor incorrectly. Use Registry Editor at your own risk.
After you follow the steps in the previous sections, Search Companion may
start when you double-click a folder (instead of the folder being opened).
Or, if you have associated other actions with file folders, those actions
may be performed instead.
To resolve this issue:
Start Registry Editor (Regedt32.exe).
Locate the Default value under the following key in the registry:
HKEY_CLASSES_ROOT\Directory\shell
Click Modify on the Edit menu.
Type none in the File data box, and then click OK.
Quit Registry Editor.
--
Christopher
Pay it forward...
"mtvjock" > wrote in message
thlink.net...
> Is it possible to create or send to a text file, all the titles/names of
> files inside a folder? If so, will somebody please respond with the
> process? Thank you!
>
> Mike Frazier
>
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.486 / Virus Database: 284 - Release Date: 5/29/2003
Educron
December 11th 03, 10:24 PM
"mtvjock" > sayeth:
>Is it possible to create or send to a text file, all the titles/names of
>files inside a folder? If so, will somebody please respond with the
>process? Thank you!
>
>Mike Frazier
>
go to the command prompt, type DIR>whatever.txt. Use >> to append
to an existing file.
Educron
December 11th 03, 10:24 PM
Educron <sorry_this_is_not_valid@#.#> sayeth:
>"mtvjock" > sayeth:
>
>>Is it possible to create or send to a text file, all the titles/names of
>>files inside a folder? If so, will somebody please respond with the
>>process? Thank you!
>>
>>Mike Frazier
>>
Select run, then type in cmd.exe
>
>go to the command prompt, type DIR>whatever.txt. Use >> to append
>to an existing file.
Use /s to include subdirectories. Type DIR /? to list other
/ switches. Text file will be in the directory (folder) you ran
the command in, unless you add \whateverdirectoryyouwantthefiletobein\
to the beginning of "whatever.txt".
Educron
December 11th 03, 10:24 PM
One more thing, if the file and directory has spaces in this name,
include the name in quotes, example
DIR /s>>"c:\my directory listing files\system directory.txt"
Kelly
December 11th 03, 10:24 PM
Hi Mike,
Print the names, and other information, of all folders and files on your
computer. http://www.karenware.com/powertools/ptdirprn.html
HOW TO: Add a "Print Directory" Feature for Folders in Windows XP
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q321379
Add "Log Folder Contents" to the SendTo Menu (Line 112)
http://www.kellys-korner-xp.com/xp_tweaks.htm
--
All the Best,
Kelly
MS-MVP Win98/XP
[AE-Windows® XP]
Troubleshooting Windows XP
http://www.kellys-korner-xp.com
Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm
"mtvjock" > wrote in message
thlink.net...
> Is it possible to create or send to a text file, all the titles/names of
> files inside a folder? If so, will somebody please respond with the
> process? Thank you!
>
> Mike Frazier
>
>
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.