capture list of files in a folder in Windows Explorer to email

M

MJ

I'm trying to copy a long list of the files that are contained in a folder in Windows
Explorer into an email message. Is there another way than using the command prompt? Is
there a way to add this feature to the right-click context menu perhaps - would be very
helpful. TIA
________________________________________________________________________________________________________________________________________________

How to create a text file list of the contents of a folder
View products that this article applies to.
Article ID:196158
Last Review:January 23, 2007
Revision:2.4

This article was previously published under Q196158
On This Page
SUMMARY
MORE INFORMATION
How to Create a File List at a Command Prompt
How to Print a File List in Outlook
SUMMARY
This article describes how to create or print a list of files in a folder at a command
prompt or in Microsoft Outlook. This procedure may be useful when you view or print a
list of the contents in a folder.
Back to the top
MORE INFORMATION
To create a text file that contains a list of the contents in a folder, use one of the
following methods.
Back to the top
How to Create a File List at a Command Prompt
1.Click Start, point to Programs, and then click MS-DOS Prompt (or Command Prompt in
Windows NT).
2.At a command prompt, locate the drive that contains the folder whose contents you want
to list. For example, if you want to create a text file that contains a list of the
contents of a folder on drive C, type the following command at a command prompt, and
then press ENTER:
c:
3.At a command prompt, locate the folder whose contents you want to list. For example,
if you want to create a text file that contains a list of the contents in the Windows
folder on drive C, type the following commands at a command prompt, and press ENTER
after you type each command:
cd\
cd windows
4.Type the following command at a command prompt, and then press ENTER, where filename
is the name of the text file that you are creating:
dir > filename.txt
For example, if you want to create a file named Windowsfolderlist.txt, type the
following command at a command prompt, and then press ENTER:
dir > windowsfolderlist.txt
NOTE: The text file that you create is located in the folder that you are in when you
follow these steps. In the earlier example, the Windowsfolderlist.txt file is located in
the Windows folder.
5.Use a text editor, such as Notepad, to view or print this file.
NOTE: You cannot export or print a list of the files that are contained in a folder in
Windows Explorer.
___________________________________________________________________________________________________________________________________
 
A

Ayush

Replied to [MJ]s message :
I'm trying to copy a long list of the files that are contained in a folder in Windows
Explorer into an email message. Is there another way than using the command prompt? Is
there a way to add this feature to the right-click context menu perhaps - would be very
helpful. TIA

Control Panel | Folder Options | File Types
Click Folder [NOT FILE FOLDER] | Click Advanced | Click New
Enter a name in action field and the following in Application... (Turn off wordwrap):
cmd.exe /c dir "%1" /a:-d /b /-p > "%%tmp%%\Tmp.DirL" & start "" notepad.exe
"%%tmp%%\Tmp.DirL"
Click OK | OK | Close
-----------------------------------------

Or use the attached reg file.



Related link :
http://support.microsoft.com/kb/321379

--
→ Ayush [ Good :) Luck ]
-------------
Search - www.Google.com | Wikipedia - http://en.wikipedia.org
Snip your long urls - http://snipurl.com/
-------------

ÿþW\0i\0n\0d\0o\0w\0s\0 \0R\0e\0g\0i\0s\0t\0r\0y\0 \0E\0d\0i\0t\0o\0r\0 \0V\0e\0r\0s\0i\0o\0n\0 \05\0.\00\00\0
\0
\0
\0
\0[\0H\0K\0E\0Y\0_\0C\0L\0A\0S\0S\0E\0S\0_\0R\0O\0O\0T\0\\0F\0o\0l\0d\0e\0r\0\\0s\0h\0e\0l\0l\0\\0F\0i\0l\0e\0s\0L\0i\0s\0t\0]\0
\0
\0@\0=\0"\0F\0i\0l\0e\0s\0 \0l\0i\0s\0t\0"\0
\0
\0
\0
\0[\0H\0K\0E\0Y\0_\0C\0L\0A\0S\0S\0E\0S\0_\0R\0O\0O\0T\0\\0F\0o\0l\0d\0e\0r\0\\0s\0h\0e\0l\0l\0\\0F\0i\0l\0e\0s\0L\0i\0s\0t\0\\0c\0o\0m\0m\0a\0n\0d\0]\0
\0
\0@\0=\0"\0c\0m\0d\0.\0e\0x\0e\0 \0/\0c\0 \0d\0i\0r\0 \0\\0"\0%\01\0\\0"\0 \0/\0a\0:\0-\0d\0 \0/\0b\0 \0/\0-\0p\0 \0>\0 \0\\0"\0%\0%\0t\0m\0p\0%\0%\0\\0\\0T\0m\0p\0.\0D\0i\0r\0L\0\\0"\0 \0&\0 \0s\0t\0a\0r\0t\0 \0\\0"\0\\0"\0 \0n\0o\0t\0e\0p\0a\0d\0.\0e\0x\0e\0 \0\\0"\0%\0%\0t\0m\0p\0%\0%\0\\0\\0T\0m\0p\0.\0D\0i\0r\0L\0\\0"\0"\0
\0
\0
\0
\0
 
B

Bruce Chambers

MJ said:
I'm trying to copy a long list of the files that are contained in a folder in Windows
Explorer into an email message. Is there another way than using the command prompt? Is
there a way to add this feature to the right-click context menu perhaps - would be very
helpful. TIA


From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "dir > filelist.txt" or "dir > lpt1,"
just as you used to do in DOS. Any of the switches for the DIR command
(type "dir /?") will work with this command, if you wish to modify the
output. You can then subsequently edit the resulting text file using
NotePad, WordPad, Word, etc.

Alternatively:

HOW TO Add a Print Directory Feature for Folders in Windows XP
http://support.microsoft.com/?kbid=321379


--

Bruce Chambers

Help us help you:



They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. -Benjamin Franklin

Many people would rather die than think; in fact, most do. -Bertrand Russell
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top