Copying file names

B

Bill XP

How can I copy the list of file names in a floder (just
the file names not the files) to note pad or other
program?
 
R

Ramesh [MVP]

Bill,

Click [Start] [Run] [Cmd]
Goto the appropriate directory.
Type "Dir /b >list.txt"
[include "/s" for sub-directories listing]

Open List.txt in notepad and print the contents.

How to Add the Print Directory Feature to Windows Explorer:
http://support.microsoft.com/?kbid=272623

--
Ramesh - Microsoft MVP
http://www.mvps.org/sramesh2k

-------------------------------------------
Internet Explorer Newsgroup FAQs:
http://www.mvps.org/sramesh2k/IEFAQ.htm

Using ToolbarCop to remove the unwanted Toolband, Toolbar Icons and BHO:
http://www.mvps.org/sramesh2k/toolbarcop.htm
 
A

anonymous

1. Go to a command prompt and issue the command

dir [drive:folder] > prn

If that doesn't work, your printer may not be connected
to prn.
In that case issue this command instead:

dir [drive:folder] > c:\tempfilename (you can use any
name and
put it in any folder you want)

Then open notepad, open tempfilename, and print it from
there.


2. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-
US;Q321379
and follow the instructions there.


3. Download and use any of the several freeware/shareware
utilities that can do this.
==========================================================
====
Open a command prompt, cd into the root of the directory
you want to get a
listing of and type:

dir > filename.txt

You have a lot of options with dir - just type:

dir /?

at a command prompt and you will see you can do things
like:

dir /b /s > c:\filename.txt

Which would get just the file and directory names without
all the sizes, etc
in the current and all sub directories and put them in
c:\filename.txt
--------------------------------
In Notepad create this string:-

DIR/ON/S>"%userprofile%\MY DOCUMENTS\LISTING.TXT"

Save the file as printdir.bat

Now copy the file to where you want to make a listing of
files (including
subfolders) and then double click on it.

This will send a listing.txt file to your "my documents
folder" which you
can edit and print.
================================================
 
K

Ken Blake, MVP

1. Go to a command prompt and issue the command

dir [drive:folder] > prn

If that doesn't work, your printer may not be connected
to prn.
In that case issue this command instead:

dir [drive:folder] > c:\tempfilename (you can use any
name and
put it in any folder you want)

Then open notepad, open tempfilename, and print it from
there.

2. Go to
http://support.microsoft.com/default.aspx?scid=kb;EN-
US;Q321379
and follow the instructions there.


3. Download and use any of the several freeware/shareware
utilities that can do this.


It's not bad enough that you plagiarize my messages, but you also
have to send the above, which isn't respnsive to his question. He
doesn't want to print the directory listing, he wants it in a
file.

--
Ken Blake - Microsoft MVP Windows: Shell/User
Please reply to the newsgroup



 

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