Announcement

Collapse
No announcement yet.

Listing Contents of Directories

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Listing Contents of Directories

    Im transferring my CDs onto my Hard Drive, and would like to have a program which lists the directories and contents of each.

    For example, my structure is Artist/Album or Track/Album or Track Title/Content.mp3 - so it would need to be able to search and list within each directory, perhaps in notepad form.

    *Camps you had something that did this a while back, if you see this can you LMK what its called.

    #2
    Is formatting the problem?

    Otherwise you could just do a dir /s *.mp3 > mymusic.txt type thing from the command prompt.

    Comment


      #3
      better still:

      tree /a /f c:\the\dir\you\want\to\list > c:\the\file\it\gets\listed\in.txt

      Comment


        #4
        Originally posted by Valken
        better still:

        tree /a /f c:\the\dir\you\want\to\list > c:\the\file\it\gets\listed\in.txt
        Flash git

        Comment


          #5
          Oooh, another alternative... say if you wanted to action something based on each file found, you can use for:

          for /r c:\ %i in (*.mp3) do @echo %i %~ni %~di

          Which will loop through all files matching (set) (e.g. *.mp3) and 'do' the command following; in this case, output the file found (%i), the file name (formatted by %~ni) and the drive it was found on. Nice if you wanna pass stuff to awk or something, but we're talking geekdom here Tree will do the job, just wanted to flex my geek powers

          Comment


            #6
            That f00king rocks. I jsut did a tree txt of my racing stuff folder and the text file is over 5mb O_o;;;;;

            Is there any way of having it so it lists the filesize along with the filename? Like in brackets or sommat. Cheers.

            Comment


              #7
              Not with the basic tree command, no. You'll need to hack something together.

              Comment

              Working...