Quick way of making list of files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to know of a way to make a list, like with notepad, wordpad, or
some doc app of file names. I would like to be able to quickly make a list of
all song names (File Names) in "My Music" and names of home movies in "My
Video" so I can Email them to to friends and family. Typing it all out
manually would take days I believe.
 
On Sat, 4 Jun 2005 19:34:03 -0700, "David W"

|I would like to know of a way to make a list, like with notepad, wordpad, or
|some doc app of file names. I would like to be able to quickly make a list of
|all song names (File Names) in "My Music" and names of home movies in "My
|Video" so I can Email them to to friends and family. Typing it all out
|manually would take days I believe.
I use PCWorld.com - PrintFolders v1.4:
http://www.pcworld.com/downloads/file_description/0,fid,23030,00.asp

HTH-Larry
Any advise is my attempt to contribute more than I have received but I can only assure you that it works on my PC. GOOD LUCK.
 
I like the first item of TaurArian's advice,


BUT I'd suggest that if you simply want a list of FILES, not the date and
size data as well, instead of

dir %1 /-p /o:gn > "%temp%\Listing"

try

dir %1 /-p /b > "%temp%\Listing"

which will give you a listing of the files in the folder, or

dir %1 /-p /s /b > "%temp%\Listing"

which will give you a listing of the files in the folder and all of its
subfolders.

The /p switch to notepad will print the file to the default printer. You may
not want this.

Note also that the article deletes the listing file after the NOTEPAD
session is closed.

Personally, I'd remove the

start /w notepad /p "%temp%\Listing"
del "%temp%\Listing"

and change ""%temp%\Listing" to a specific filename (such as
"C:\musiclist.txt")

The batch file printdir.bat thus becomes

@echo off
dir %1 /-p /b > "C:\musiclist.txt"
start notepad "C:\musiclist.txt"
exit

which will generate a new file "C:\musiclist.txt" with a list of files in
the directory, then open the file in notepad - yours to do with what you
will, but the file will be retained.

dir %1 /-p /s /b > "C:\musiclist.txt"

will list all subfolders of the folder selected.

....or remove the "start notepad" line to simply generate the list without
forcing an edit.

HTH

....Bill
 

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

Back
Top