PC Review


Reply
Thread Tools Rate Thread

Copying file names to a document

 
 
Tim Meddick
Guest
Posts: n/a
 
      5th Jul 2009
Copy and paste the following into a text file using notepad, then name
or rename this file with a .bat extension.

(*Tip - In Notepad, if you type the name surrounded by double "quotes"
e.g. "Filename.ext" into the 'Save as...' box, it will save the file as
Filename.ext and not as Filename.ext.txt)

Then place your DirIt.bat file into your 'SendTo' folder, when you send
a folder to this file it will automatically produce a file list for that
folder for you...

------------------- copy between lines -------------------

@echo off
DIR /B %1 > MYLIST.TXT
start /b NOTEPAD MYLIST.TXT
exit

------------------- copy between lines -------------------

==

Cheers, Tim Meddick, Peckham, London. :-)




"Richard Z" <(E-Mail Removed)> wrote in message
news:uR3l$FZ$(E-Mail Removed)...
>I want to make a list of all my files in a folder. Ideally I'd like to
>have a program be able to read the files within a folder so I don't
>have to open up folder after folder but maybe I'm getting ahead of
>myself here. I can right click a file, Rename, Copy and Paste that
>into a document and it will show up perfectly. The problem is I can't
>seem to do that with more than 1 file at a time. I just want the name
>of the file on a list.



 
Reply With Quote
 
 
 
 
Lem
Guest
Posts: n/a
 
      5th Jul 2009
Richard Z wrote:
> I want to make a list of all my files in a folder. Ideally I'd like to
> have a program be able to read the files within a folder so I don't have
> to open up folder after folder but maybe I'm getting ahead of myself
> here. I can right click a file, Rename, Copy and Paste that into a
> document and it will show up perfectly. The problem is I can't seem to
> do that with more than 1 file at a time. I just want the name of the
> file on a list.


There are a few utility programs available that do this (Karen's
Directory Printer (http://www.karenware.com/powertools/ptdirprn.asp) is
probably the most often cited), but a quick and dirty method is to open
a Command Prompt window and type

dir > dirlist.txt

You can use various switches to control what gets listed. For example,
dir /b /on prints only the names and sorts by name

type dir /? for complete syntax

--
Lem -- MS-MVP

Apollo 11 - 40 years ago this month:
http://www.nasa.gov/mission_pages/ap...0th/index.html
 
Reply With Quote
 
LVTravel
Guest
Posts: n/a
 
      5th Jul 2009


"Richard Z" <(E-Mail Removed)> wrote in message
news:uR3l$FZ$(E-Mail Removed)...
> I want to make a list of all my files in a folder. Ideally I'd like to
> have a program be able to read the files within a folder so I don't have
> to open up folder after folder but maybe I'm getting ahead of myself here.
> I can right click a file, Rename, Copy and Paste that into a document and
> it will show up perfectly. The problem is I can't seem to do that with
> more than 1 file at a time. I just want the name of the file on a list.


You can Google search for file name list programs but you can also use the
dir command for creating a text file with the full path name.

Since I am not on a XP machine I am not sure if one of the DIR switches
below works with XP but it does with Vista. You can type DIR /? and see if
the /b switch is there. If it is it will work on XP. If not leave the
switch off. A little text cleaning would then be needed for a strictly file
name with path list.

Click Start, Run and type CMD then press enter.
Type cd \ and press enter to get back to the root of the system drive (C:\)
Type DIR /s /b >c:\filenames.txt

The DIR command runs a directory listing. The /s switch starts it and runs
through all subdirectories. The /b switch strips off all headers and only
gives the filename and full path. There may be some path names too long for
the DIR command (usually within your system file area such as Live mail
recovery file folder. Otherwise I think this may work for you.

It may create a really large file size so it may not open in some word
editors.



 
Reply With Quote
 
Tim Meddick
Guest
Posts: n/a
 
      5th Jul 2009

After reading the post sent by "Lem", I realise that the I have the and
the /O parameter automatically And inserted on my system. The following
code will not only sort the filenames in alphabetical order, but also
cut out Folder names also....


------------------- copy between lines -------------------

@echo off
DIR /B /ON /A-D %1 > MYLIST.TXT
start /b NOTEPAD MYLIST.TXT
exit

------------------- copy between lines -------------------


==

Cheers, Tim Meddick, Peckham, London. :-)




"Tim Meddick" <(E-Mail Removed)> wrote in message
news:%23oFTvUZ$(E-Mail Removed)...
> Copy and paste the following into a text file using notepad, then name
> or rename this file with a .bat extension.
>
> (*Tip - In Notepad, if you type the name surrounded by double "quotes"
> e.g. "Filename.ext" into the 'Save as...' box, it will save the file
> as Filename.ext and not as Filename.ext.txt)
>
> Then place your DirIt.bat file into your 'SendTo' folder, when you
> send a folder to this file it will automatically produce a file list
> for that folder for you...
>
> ------------------- copy between lines -------------------
>
> @echo off
> DIR /B %1 > MYLIST.TXT
> start /b NOTEPAD MYLIST.TXT
> exit
>
> ------------------- copy between lines -------------------
>
> ==
>
> Cheers, Tim Meddick, Peckham, London. :-)
>
>
>
>
> "Richard Z" <(E-Mail Removed)> wrote in message
> news:uR3l$FZ$(E-Mail Removed)...
>>I want to make a list of all my files in a folder. Ideally I'd like
>>to have a program be able to read the files within a folder so I don't
>>have to open up folder after folder but maybe I'm getting ahead of
>>myself here. I can right click a file, Rename, Copy and Paste that
>>into a document and it will show up perfectly. The problem is I can't
>>seem to do that with more than 1 file at a time. I just want the name
>>of the file on a list.

>
>



 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      5th Jul 2009

"Richard Z" <(E-Mail Removed)> wrote in message
news:uR3l$FZ$(E-Mail Removed)...
>I want to make a list of all my files in a folder. Ideally I'd like to
>have a program be able to read the files within a folder so I don't have to
>open up folder after folder but maybe I'm getting ahead of myself here. I
>can right click a file, Rename, Copy and Paste that into a document and it
>will show up perfectly. The problem is I can't seem to do that with more
>than 1 file at a time. I just want the name of the file on a list.


After resolving this issue with the various tips from the other respondents,
have a look at your PC clock. You're posting in the future. Either your
clock is wrong or your PC is set to the wrong time zone.


 
Reply With Quote
 
Ken Blake, MVP
Guest
Posts: n/a
 
      5th Jul 2009
On Sun, 5 Jul 2009 11:56:25 -0700, "Richard Z"
<(E-Mail Removed)> wrote:

> I want to make a list of all my files in a folder. Ideally I'd like to have a program be able to
> read the files within a folder so I don't have to open up folder after folder but maybe I'm getting
> ahead of myself here. I can right click a file, Rename, Copy and Paste that into a document and it
> will show up perfectly. The problem is I can't seem to do that with more than 1 file at a time. I
> just want the name of the file on a list.



Here are four ways:

1. Go to a command prompt and issue the command

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. Write (for example in Notepad) a 1-line text file:
DIR %1 /O >LPT1:

Save it as "printdir.bat" in the "Send To" folder.

Then, to print list of files in any folder, right-click that folder
and select Send to | printdir.bat

To include subfolders, change the comand to DIR %1 /O/S >LPT1:

3. Go to
http://support.microsoft.com/default...;EN-US;Q321379 and
follow the instructions there.

4. Download and use any of the several freeware/shareware utilities
that can do this, such as the popular
http://www.karenware.com/powertools/ptdirprn.asp


--
Ken Blake, Microsoft MVP - Windows Desktop Experience
Please Reply to the Newsgroup
 
Reply With Quote
 
Richard Z
Guest
Posts: n/a
 
      5th Jul 2009
I want to make a list of all my files in a folder. Ideally I'd like to have a program be able to
read the files within a folder so I don't have to open up folder after folder but maybe I'm getting
ahead of myself here. I can right click a file, Rename, Copy and Paste that into a document and it
will show up perfectly. The problem is I can't seem to do that with more than 1 file at a time. I
just want the name of the file on a list.

 
Reply With Quote
 
Bruce Chambers
Guest
Posts: n/a
 
      5th Jul 2009

Richard Z wrote:
> I want to make a list of all my files in a folder. Ideally I'd like to
> have a program be able to read the files within a folder so I don't have
> to open up folder after folder but maybe I'm getting ahead of myself
> here. I can right click a file, Rename, Copy and Paste that into a
> document and it will show up perfectly. The problem is I can't seem to
> do that with more than 1 file at a time. I just want the name of the
> file on a list.



From the command prompt (Start > Run > Cmd.exe), simply change to
the desired directory and type "dir > filelist.txt" or "dir > lpt1,"
just as one 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

Directory Lister
http://www.krksoft.com/index.php


--

Bruce Chambers

Help us help you:
http://www.catb.org/~esr/faqs/smart-questions.html

http://support.microsoft.com/default.aspx/kb/555375

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

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
 
Reply With Quote
 
Lanwench [MVP - Exchange]
Guest
Posts: n/a
 
      6th Jul 2009
Pegasus [MVP] <(E-Mail Removed)> wrote:
> "Richard Z" <(E-Mail Removed)> wrote in message
> news:uR3l$FZ$(E-Mail Removed)...
>> I want to make a list of all my files in a folder. Ideally I'd like
>> to have a program be able to read the files within a folder so I
>> don't have to open up folder after folder but maybe I'm getting
>> ahead of myself here. I can right click a file, Rename, Copy and
>> Paste that into a document and it will show up perfectly. The
>> problem is I can't seem to do that with more than 1 file at a time. I
>> just want the name of the file on a list.

>
> After resolving this issue with the various tips from the other
> respondents, have a look at your PC clock. You're posting in the
> future. Either your clock is wrong or your PC is set to the wrong
> time zone.


No. He's totally from the future. I checked him out. He knows tomorrow's
lotto numbers.


 
Reply With Quote
 
Pegasus [MVP]
Guest
Posts: n/a
 
      6th Jul 2009

"Lanwench [MVP - Exchange]"
<(E-Mail Removed)> wrote in message
>
> No. He's totally from the future. I checked him out. He knows tomorrow's
> lotto numbers.
>


Let's grab him while we can!


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying document names? =?Utf-8?B?bWhhbGU=?= Microsoft Excel Misc 1 3rd Feb 2007 01:30 AM
Copying File Names =?Utf-8?B?T3o=?= Windows XP New Users 3 14th Feb 2006 12:42 AM
OVERLY-LONG FILE NAMES, as impediment to file copying =?Utf-8?B?RXZlcnltYW5FbmRVc2Vy?= Windows XP Help 6 17th Aug 2005 03:14 AM
Copying file names Bill XP Windows XP Basics 4 16th Jan 2004 09:56 PM
COPYING FILE NAMES TO A WORD DOCUMENT BUD Windows XP General 14 11th Sep 2003 02:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:22 AM.