To Thread - Forum Home

The Mudcat Café TM
https://mudcat.org/thread.cfm?threadid=122063
17 messages

Tech: Windoze folder question

04 Jul 09 - 10:12 PM (#2671770)
Subject: Tech: Windoze folder question
From: michaelr

On my hard drive I have a folder called "Songbook" which contains lyrics to hundreds of songs in Word documents. I'd like to print a list of titles of all the songs contained in the folder, but I can't figure out how to tell Windows to do this. Can anyone help?

Thanks in advance!


05 Jul 09 - 12:32 AM (#2671821)
Subject: RE: Tech: Windoze folder question
From: Amergin

Type them all out into a word document....


05 Jul 09 - 01:27 AM (#2671833)
Subject: RE: Tech: Windoze folder question
From: Dave the Gnome

Presuming the song title is the same as the filename do a dir of the folder using the command prompt and redirect the output to a file or printer. EG -

c:\> cd big song folder
c:\big song folder>dir > listofsongs.txt

OR

c:\big song folder>dir | print

Yes?

DeG


05 Jul 09 - 01:39 AM (#2671837)
Subject: RE: Tech: Windoze folder question
From: Dave the Gnome

BTW - dir will probably give more details than you want so, on reflection, send it to a file and then import the file into, for instance, a spreadsheet where you can isolate just the column you want. I could do it on the command line in unix but I don't know the equivalent dos commands (sad or what?)

:D


05 Jul 09 - 05:28 AM (#2671897)
Subject: RE: Tech: Windoze folder question
From: Mick Pearce (MCP)

Dave

If you start a command prompt and do:

cd songFolder
dir /b >file.txt

Will put just the names into file.txt (in the same directory), which you can then print or tidy up as you desire.

Mick


05 Jul 09 - 08:48 AM (#2671962)
Subject: RE: Tech: Windoze folder question
From: Bonzo3legs

There is a page on this somewhere in the Microsoft Knowledge Base which I used.


05 Jul 09 - 09:02 AM (#2671966)
Subject: RE: Tech: Windoze folder question
From: olddude

you can also open the folder,   maximize it,
then hit control-C to screen capture the image

open up word

hit Control-V

this will paste the image into word which should be a list of your files

Dan


05 Jul 09 - 09:03 AM (#2671967)
Subject: RE: Tech: Windoze folder question
From: Bonzo3legs

dir /a /b /-p /o:gen >C:\Temp\List_Files.txt
start notepad C:\Temp\List_Files.txt

The above batch file works for me.


05 Jul 09 - 11:39 AM (#2672042)
Subject: RE: Tech: Windoze folder question
From: VirginiaTam

As I make each document in WORD, I copy the title into EXCEL spreadsheet titled AA songlist to keep it at the top folder.

Now I can sort by title or type/genre (UK Trad, American folk, blues, seasonal, etc.) or artist/author.   I keep this index spreadsheet in the same folder as the songs. One day I may make each title in the spreadsheet a link to the actual document.

A number of my song sheets (have links to sound files or you tube videos, so melody is a mouse click away when I want to practise, but don't remember the tune).


05 Jul 09 - 12:59 PM (#2672107)
Subject: RE: Tech: Windoze folder question
From: michaelr

Please, I am grateful for the help (except yours, Amergin, thanks for nothing), but in English please!

I have no clue what "do a dir" means or how to "start a command prompt". Bonzo, your post is unintelligible to me. Please explain.

Thanks again,
Michael


05 Jul 09 - 01:04 PM (#2672108)
Subject: RE: Tech: Windoze folder question
From: michaelr

Olddude, I tried what you said, but nothing pasted into the Word document.


05 Jul 09 - 01:32 PM (#2672123)
Subject: RE: Tech: Windoze folder question
From: Mick Pearce (MCP)

michaelr

The Command Prompt is the DOS command window available through Windows. Usually you can access it from the Start Menus with the sequence: Start/All Programs/Accessories/Command Prompt.

It will open a window showing the DOS prompt (C:\> - if it's not showing C\>, type the command cd .. until it does).

Type in the command (followed by Enter/Return):

  cd /songfolder

where songfolder is the name of the folder, this will change the current directory to be your songfolder directory, and the prompt will probably change to something like:

  C:\songfolder>

Now type the command:

  dir /b >files.txt

this will make a list of the names of files in the folder, 1 per line, without any extra information and put the list in a file called files.txt (you can use any name you like for this).

You can then open the file (from Windows now) in Word/Notepad/Wordpad/Excel or whatever you want to read it in.

Type the command:

  exit

to close the Command Prompt window, or just click the close X at the top right of the window.

Mick


05 Jul 09 - 02:54 PM (#2672160)
Subject: RE: Tech: Windoze folder question
From: michaelr

Mick, you're a star. Thanks a million!

Michael


05 Jul 09 - 05:00 PM (#2672228)
Subject: RE: Tech: Windoze folder question
From: Bonzo3legs

I don't understand it either, I just followed instructions.


05 Jul 09 - 05:03 PM (#2672232)
Subject: RE: Tech: Windoze folder question
From: dick greenhaus

THis is the kind of thing that was a breeze in the old 1988 DOS version of askSam---one reason I'm still using it.


05 Jul 09 - 07:47 PM (#2672317)
Subject: RE: Tech: Windoze folder question
From: michaelr

OK, Bonzo, but I couldn't follow them because I didn't know where to start. Mick explained it so I could.

I appreciate your trying to help, anyway.


06 Jul 09 - 02:20 AM (#2672463)
Subject: RE: Tech: Windoze folder question
From: VirginiaTam

Ahhh, the good old days of DOS. I used to edit US Federal Code in DOS and tables had to be formatted using MAPs commands. One step up from chisel and stone we used to say.

Why did I not take out the brackets in last sentence in earlier post. Sunday was brain free day. Not good for anything but ironing and singing, which I did.

Glad it is sorted Michael.