1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

DOS CMD Sort+Add Sequence+Remove Sequence number

Discussion in 'Support' started by Hennie de Jager, Jul 24, 2017.

  1. Hennie de Jager

    Joined:
    May 13, 2017
    Messages:
    12
    Likes Received:
    0
    Hi

    I want to edit a folder with 3500 .wma music files(records). Can someone please give me the exact DOS CMD Commands to -
    a) Sort the folder alphabetically
    b) Add a Sequence number in front of each music record's filename
    (at this point I want to edit the folder's records - remove, repair and load back the one's with problems)
    c) Remove the Sequence numbers

    Thank-you very much

    Hennie
     
  2. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,888
    Likes Received:
    30
    What operating system? ... what file system (NTFS?) ... are all the files in **one** directory (without subdirectories)? ... what will the numbers be used for?
     
  3. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,288
    Likes Received:
    39
    Probably not DOS....
     
  4. Hennie de Jager

    Joined:
    May 13, 2017
    Messages:
    12
    Likes Received:
    0
    Hi vefatica

    Thanks for responding. I am using Windows 10 Pro, NFTS filing system, and there are masses of sub-directories, which I am busy to remove - cut & pasting all records to a single directory. Eventually I would break them up in Classical; Light Classical; Opera; Vocal; Popular; etc (maybe 10 to 20 sub-directories), after I have fixed the problems.

    As I mentioned in a previous thread (May 2017), for some or other reason some of the .wma records don't play on the music system of my Honda Civic ("Not Playable"), so I need to easily identify the culprits, because it just flashes on the display screen, then it goes on to the next record. If every record is numbered, it would be easy to jot down the culprits.

    Thank-you

    Hennie
     
  5. Hennie de Jager

    Joined:
    May 13, 2017
    Messages:
    12
    Likes Received:
    0
    If the DOS CMD Command to remove the sequence numbers can also be used to remove all digits in the front of all filenames it will be great, because at the moment I have to remove it manually (inserted as track numbers when loading LP's to my computer by MAGIX app). The few valid digits like "1812 Overture" I can reload manually.
     
  6. Hennie de Jager

    Joined:
    May 13, 2017
    Messages:
    12
    Likes Received:
    0
    The Track numbers are usually two digits followed by a space to separate it from the actual file name.
     
  7. Hennie de Jager

    Joined:
    May 13, 2017
    Messages:
    12
    Likes Received:
    0
    However, not all the records have track numbers, as many have been removed manually already.
     
  8. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,888
    Likes Received:
    30
    I have no idea how (or even IF) what you want can be done with CMD. Here are a couple straightforward BTM files (for TCC.EXE) to add and remove the numbers (and an example of their use). I'd be very surprised to see something like that done with CMD. Sorting should not be an issue if you have NTFS; NTFS returns filenames in alphabetical order.
    upload_2017-7-24_22-41-59.png
     
  9. MaartenG

    Joined:
    Aug 3, 2016
    Messages:
    361
    Likes Received:
    8
    2017-07-25 10_10_47-C__Windows_system32_cmd.exe.png
     
  10. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,888
    Likes Received:
    30
    Nice, Maarten!
     
  11. JohnQSmith

    Joined:
    Jan 19, 2011
    Messages:
    564
    Likes Received:
    8
  12. Hennie de Jager

    Joined:
    May 13, 2017
    Messages:
    12
    Likes Received:
    0
    Thank-you vefatica, MaartenG and JohnQSmith. I'm not too smart on software, so it will take me a time to experiment to get a workable solution.
    Will let you know when there is a positive result.
     
  13. w_krieger

    Joined:
    Nov 2, 2008
    Messages:
    176
    Likes Received:
    0
    wren.exe does a pretty good job on this. It comes in MS-DOS and Win32 modes.

    In the example above, you would use ' wren *-*.wma $3.wma' The $1, $2, ... match individual wildcards or strings.

    Code:
    WRen by Jason Hood <jadoxa@yahoo.com.au>.
    Version 1.02 (9 October, 2003). Freeware.
    http://wren.adoxa.cjb.net/
    
    WREN [-acdFt] [old_path]old_pattern [[new_path]new_pattern]
    
            -a      all files (include hidden and system files)
            -c      match case
            -d      include directories
            -F      force rename (delete existing files)
            -t      test (display instead of rename)
            -u      undo the previous rename
            -h      help
    
     

Share This Page