View Single Post
  #4 (permalink)  
Old 07-05-2009, 10:50 AM
Tim Meddick
Newsgroup Contributor
 
Posts: n/a
Re: Copying file names to a document

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" <timmeddick@gawab.com> wrote in message
news:%23oFTvUZ$JHA.1340@TK2MSFTNGP05.phx.gbl...
> 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" <reply.to.group@here.thanks> wrote in message
> news:uR3l$FZ$JHA.2824@TK2MSFTNGP03.phx.gbl...
>>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

 
Old 07-05-2009, 10:50 AM