Deleting a certain file type from all subfolders

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ste
    PCHF Member
    • Jan 2018
    • 41

    #1

    Deleting a certain file type from all subfolders

    I have extracted the audio from a large number of CD’s as FLAC (lossless) audio files. I also converted them to MP3 format to enable them to be played in my car. However being both nieve and useless I have put both formats into the same folders, Each Album has its own folder. So now I have lots of folders containing FLAC and MP3 files. I know need to convert the FLAC files to apple lossless format to enable them to be imported to iTunes. How can I delete the MP3 format files from all of the folders in one go. It will take a hours to visit each folder and delete them indiviidually.
    Basically I have one folder with 64 subfolders (albums) that have two file types in each of them, how do i delete one file type from every folder…Thanks for any assistance
  • veeg
    PCHF Director
    • Jul 2016
    • 8977

    #2
    Hello

    Hopefully some of our members will chime in soon.

    @gus @georgeks @Rustys

    Comment

    • Bruce
      PCHF Member
      • Oct 2017
      • 10697

      #3
      start an elevated command prompt (doesn’t actually need to be elevated, just force of habit)
      type;
      cd c:\users\me\albums (adjust accordingly)
      del *.mp3 /s
      NOTE: from the directory you CD to, the DEL command will delete all MP3 files in all sub-directories of that parent folder and down.

      Comment

      • Ste
        PCHF Member
        • Jan 2018
        • 41

        #4
        c:\ being the drive the files are stored on…what should i be typing in the users and me section, apologies for my lack of knowledge…

        Comment

        • Ste
          PCHF Member
          • Jan 2018
          • 41

          #5
          running a cmd I can see that the c:\ user and me β€œbits” are already in the prompt, however the music is stored on my d: drive, where do I insert that info

          Comment

          • Ste
            PCHF Member
            • Jan 2018
            • 41

            #6
            C:\Users\sTE>D:\Users\sTE\BON JOVI CD Singles FLAC\del *.mp3\s
            The system cannot find the path specified.

            This is what I am typing, sorry to be a pain,

            Comment

            • Bruce
              PCHF Member
              • Oct 2017
              • 10697

              #7
              OK, now we know the exact path of where your music lives, the command would be this;
              (copy and paste if you like, tyhere are spaces in the command that are important)
              d:
              cd users/ste/bon jovi cd singles flac
              del *.mp3 /s

              Comment

              • phillpower2
                PCHF Administrator
                • Sep 2016
                • 15205

                #8
                Any update Ste?

                Comment

                • phillpower2
                  PCHF Administrator
                  • Sep 2016
                  • 15205

                  #9
                  Any update for us Ste? If unreplied to within 48hrs this thread will be closed.

                  Comment

                  Working...