shall we assume that you're on windows?
Just pipe the output into a text file (>) and print it in any text editor.
-
Oct 26th, 2005 03:51 PM #1
How can I print a list of files in a directory?
Problem:
I have a folder filled with pdf files I'd like to print out as a hard copy (to use as a checklist/inventory)... I don't want the contents of the files printed, just the directory itself listing all the files inside. Is there a way to do it so it looks somewhat neat and tidy? Both PrintScreen and using the command prompt to copy and paste look horrible.
Thanks.
Reply With Quote
LOG IN TO THANK
No one has yet thanked Canadianpsycho for this post.
-
Sponsored Links - Join the RedFlagDeals.com community and remove this ad.
-
Oct 26th, 2005 04:00 PM #2.........................




- Join Date
- Nov 17th, 2001
- Location
- Calgary, AB
- Posts
- 5,897
_______________
You didn't really think that I was GONE, did you?
Reply With Quote
LOG IN TO THANK
No one has yet thanked Zippity for this post.
-
Oct 26th, 2005 04:02 PM #3
Like this? (I just cut & pasted it from WordPad):
(btw, what's so bad about this?)
1) Open up a command prompt.. do a DIR listingE:\MP3>dir (V*.*
Volume in drive E is Quantum 6.4
Volume Serial Number is E4CB-40D7
Directory of E:\MP3
26/11/04 08:38 AM 1,433,925 (Van Halen) - 316.mp3
26/11/04 08:38 AM 5,496,500 (Van Halen) - 5150.mp3
26/11/04 08:38 AM 5,520,452 (Van Halen) - Ain't Talkin' 'Bout Love.mp3
26/11/04 08:38 AM 5,705,229 (Van Halen) - Amsterdam.mp3
26/11/04 08:38 AM 4,275,486 (Van Halen) - And The Cradle Will Rock.mp3
26/11/04 08:38 AM 3,741,104 (Van Halen) - Beautiful Girls.mp3
26/11/04 08:38 AM 5,781,823 (Van Halen) - Best Of Both Worlds.mp3
26/11/04 08:38 AM 10,195,072 (Van Halen) - Cabo Wabo.mp3
26/11/04 08:38 AM 3,368,602 (Van Halen) - California Girls.mp3
26/11/04 08:38 AM 3,952,306 (Van Halen) - Can't Stop Loving You.mp3
26/11/04 08:38 AM 3,725,358 (Van Halen) - Dance The Night Away.mp3
26/11/04 08:38 AM 4,028,416 (Van Halen) - Doa.mp3
26/11/04 08:38 AM 4,658,128 (Van Halen) - Dreams.mp3
26/11/04 08:38 AM 5,081,295 (Van Halen) - Drop Dead Legs.mp3
26/11/04 08:38 AM 3,682,043 (Van Halen) - Eruption Guitar Solo.mp3
26/11/04 08:38 AM 2,538,466 (Van Halen) - Girl You Really Got Me Now.mp3
26/11/04 08:38 AM 4,559,284 (Van Halen) - Hot For Teacher.mp3
26/11/04 08:38 AM 4,943,430 (Van Halen) - Humans Being.mp3
26/11/04 08:38 AM 3,952,878 (Van Halen) - I Can't Stop Loving You.mp3
26/11/04 08:38 AM 3,367,787 (Van Halen) - Jamie's Cryin'.mp3
26/11/04 08:38 AM 6,553,600 (Van Halen) - Little Guitars.mp3
26/11/04 08:38 AM 9,690,467 (Van Halen) - Love Walks In.mp3
26/11/04 08:38 AM 7,229,440 (Van Halen) - Meanstreets.mp3
26/11/04 08:38 AM 5,104,132 (Van Halen) - Panama.mp3
26/11/04 08:38 AM 6,422,958 (Van Halen) - Poundcake.mp3
26/11/04 08:38 AM 4,162,222 (Van Halen) - Pretty Woman.mp3
26/11/04 08:38 AM 4,178,463 (Van Halen) - Runaround.mp3
26/11/04 08:38 AM 4,381,780 (Van Halen) - Running With The Devil.mp3
26/11/04 08:38 AM 6,124,412 (Van Halen) - Summer Nights.mp3
26/11/04 08:38 AM 3,344,987 (Van Halen) - Unchained.mp3
26/11/04 08:38 AM 5,424,902 (Van Halen) - When It's Love.mp3
26/11/04 08:38 AM 3,694,207 (Van Halen) - Where Have All The Good Times Gone.mp3
26/11/04 08:38 AM 3,645,640 (Van Halen) - Why Can't This Be Love.mp3
26/11/04 08:38 AM 4,136,739 (Van Halen) - You Really Got Me (With Eruption Guitar Solo).mp3
26/11/04 08:38 AM 7,602,304 (Vanessa Carlton) - A Thousand Miles.mp3
26/11/04 08:38 AM 5,723,719 (Vanessa Carlton) - Ordinary Day.mp3
26/11/04 08:38 AM 8,005,632 (Vanilla Fudge) - Eleanor Rigby.mp3
26/11/04 08:38 AM 6,126,891 (Veracocha) - Carte Blanche (Original Mix).mp3
26/11/04 08:38 AM 8,550,640 (Veracocha) - Carte Blanche (Original Version).mp3
26/11/04 08:38 AM 3,185,043 (Veruca Salt) - Volcano Girls.mp3
40 File(s) 203,295,762 bytes
0 Dir(s) 7,061,504 bytes free
2) Right-click and select 'Mark'
3) Highlight everything you want to copy to the clipboard
4) Paste in favourite word processing app
5) Print!Last edited by RenegadeX; Oct 26th, 2005 at 04:06 PM.
Reply With Quote
LOG IN TO THANK
No one has yet thanked RenegadeX for this post.
-
Oct 26th, 2005 04:09 PM #4
Or like this, using the dir /b option (see dir /? for more options) :
E:\MP3>dir (V*.* /b
(Van Halen) - 316.mp3
(Van Halen) - 5150.mp3
(Van Halen) - Ain't Talkin' 'Bout Love.mp3
(Van Halen) - Amsterdam.mp3
(Van Halen) - And The Cradle Will Rock.mp3
(Van Halen) - Beautiful Girls.mp3
(Van Halen) - Best Of Both Worlds.mp3
(Van Halen) - Cabo Wabo.mp3
(Van Halen) - California Girls.mp3
(Van Halen) - Can't Stop Loving You.mp3
(Van Halen) - Dance The Night Away.mp3
(Van Halen) - Doa.mp3
(Van Halen) - Dreams.mp3
(Van Halen) - Drop Dead Legs.mp3
(Van Halen) - Eruption Guitar Solo.mp3
(Van Halen) - Girl You Really Got Me Now.mp3
(Van Halen) - Hot For Teacher.mp3
(Van Halen) - Humans Being.mp3
(Van Halen) - I Can't Stop Loving You.mp3
(Van Halen) - Jamie's Cryin'.mp3
(Van Halen) - Little Guitars.mp3
(Van Halen) - Love Walks In.mp3
(Van Halen) - Meanstreets.mp3
(Van Halen) - Panama.mp3
(Van Halen) - Poundcake.mp3
(Van Halen) - Pretty Woman.mp3
(Van Halen) - Runaround.mp3
(Van Halen) - Running With The Devil.mp3
(Van Halen) - Summer Nights.mp3
(Van Halen) - Unchained.mp3
(Van Halen) - When It's Love.mp3
(Van Halen) - Where Have All The Good Times Gone.mp3
(Van Halen) - Why Can't This Be Love.mp3
(Van Halen) - You Really Got Me (With Eruption Guitar Solo).mp3
(Vanessa Carlton) - A Thousand Miles.mp3
(Vanessa Carlton) - Ordinary Day.mp3
(Vanilla Fudge) - Eleanor Rigby.mp3
(Veracocha) - Carte Blanche (Original Mix).mp3
(Veracocha) - Carte Blanche (Original Version).mp3
(Veruca Salt) - Volcano Girls.mp3
Reply With Quote
LOG IN TO THANK
No one has yet thanked RenegadeX for this post.
-
Oct 26th, 2005 04:12 PM #5
open up a DOS screen in that directory and then do
dir *.* > report.txt
thats it.
Reply With Quote
LOG IN TO THANK
No one has yet thanked robattoronto for this post.
-
Oct 26th, 2005 04:13 PM #6
thanks... that /b command looks like what I wanted.
Reply With Quote
LOG IN TO THANK
No one has yet thanked Canadianpsycho for this post.
-
Oct 27th, 2005 02:13 PM #7
Click 'Start", 'Run'. Type 'cmd' (without the quotes) and then click 'OK'
Navigate to the folder where the mp3 files are located. If they are in "C:\Documents and Settings\Dan\My Documents\My Music" you would type (with the quotes): cd "C:\Documents and Settings\Dan\My Documents\My Music" and then press Enter. (You need the quotes around file or folder names with spaces in them.)
You can then type: dir *.mp3 > list.txt and then press enter.
This will list all the mp3 files in that folder and put the list in a file called list.txt in the same folder.
You can then send list.txt as an e-mail attachment.
Additionally, you can use the /b flag at the end like this:
dir *.mp3 >list.txt /b
That will get rid of the file sizes and just give you the names.
Now just switch .mp3 with .pdf
Reply With Quote
LOG IN TO THANK
No one has yet thanked TotallyKiller for this post.
-
Oct 27th, 2005 03:09 PM #8
Sometimes, DOS prompt is just easier and better
Reply With Quote
LOG IN TO THANK
No one has yet thanked willy for this post.
-
Oct 27th, 2005 03:42 PM #9
dir /whatever switch you want to display > c:\dir.txt (or whereever you want it located or called
another cool tool
tree > c:\tree.txt
> is pretty cool for any text file. you can then do some fancy parsing and feed it to and xls or database
Reply With Quote
LOG IN TO THANK
No one has yet thanked sleepyguy for this post.
-
Oct 27th, 2005 06:45 PM #10Deal Guru




- Join Date
- Aug 3rd, 2004
- Location
- Vaughan, ON, Canada
- Posts
- 13,355
Reply With Quote
LOG IN TO THANK
No one has yet thanked Gee for this post.
Search Forums


