print commands

  • Thread starter Thread starter Karl
  • Start date Start date
K

Karl

Hi,

I want to print list of my mp3s to a text file, with the output being
WITHOUT the date and time. They are sorted like this D:/My Files/Music/ then
all the directories and subdirectories. I am using dir /s > D:/songs.txt

Any suggestions?

Karl
 
You might try dir /b /s > D:/songs.txt /b is for bare output.
Type dir /? in a command prompt to see the various options.
 
Okay, I figured out how to eliminate date and time, which was the way you
described. Now, is it possible to remove D:/My Files/Music/Album/artist and
only display the file names in each directory?
 
I came up with this which seems to work:

tree "My Files"\Music /f /a >D:/"My Files"/songs.txt
 
- I don't think you can eliminate the path from the output when using the
dir /s switch.
- The sort switch for the dir command is used like this: DIR /ON for a
name sort. The Tree command does not have a sort option.

I take it what you want is a file listing the names of all MP3's in
alphabetical order with no other content? I can see some ways to do that
but they are quite complex. I'll see if I can come up with something
simpler.
--
 
Ideally, I would like to have just a normal list of the song files,
alphabetically would be ideal. Using tree and setting it to ascii produced a
pretty good list. Let me know if you come up with any other (and for me
simple is good) ways to do it. Thanks :)
 

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