• Copy Files and Folders without Alphabetical Order

    From jaugustine@verizon.net@21:1/5 to All on Mon Sep 23 12:38:55 2024
    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into another flash drive (FAT32) in the same order (NOT alphabetical), is there
    a way to do this, perhaps with an app that is NOT part of Windows?

    Thank You in advance, John

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ed Cryer@21:1/5 to jaugustine@verizon.net on Mon Sep 23 18:40:58 2024
    jaugustine@verizon.net wrote:
    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into another flash drive (FAT32) in the same order (NOT alphabetical), is there
    a way to do this, perhaps with an app that is NOT part of Windows?

    Thank You in advance, John


    OK, so you have the songs in the original order for the albums. That's
    more than sensible! Some albums were designed and planned that way. And,
    if you're like me, your head expects that order for your your
    favourites. Imagine listening to a classical symphony with the movements
    in random order!?

    Personally, I'd use Macrium Reflect for this; clone from original drive
    to a new one.

    Ed

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Graham J@21:1/5 to jaugustine@verizon.net on Mon Sep 23 18:15:33 2024
    jaugustine@verizon.net wrote:

    I have several USB flash drives (FAT32) with folders that have Names of Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into another flash drive (FAT32) in the same order (NOT alphabetical), is there
    a way to do this, perhaps with an app that is NOT part of Windows?

    I think the order of files (songs or whatever) when viewed is controlled
    by the settings in the viewer - typically Windows Explorer. This is
    managed by the "View" menu in Windows Explorer. There are several
    different options: author, date, tag, time, name, size, etc.

    If you're not using Windows Explorer then whatever that app is will
    control the view. I can't help you with that.

    So the view of the files when copied to another flash drive will be the
    same - whatever the setting is in your Windows Explorer.

    The order of files on the storage device is usually irrelevant. The
    directory holds information as to where the files are stored, and each
    file might be split into several lumps, so that the directory holds a
    linked list of locations for these lumps. As files are created and
    deleted from the storage device the available space usually becomes
    fragmented; and the performance of a spinning disk used for storage may
    be reduced. This will primarily be because the read/write head must
    move and the disk must spin. So if the file read (or write) speed is
    critical a specialist application may have to prepare the disk for
    optimum performance by processes such as defragmentation.

    For solid state storage devices there may be some slightly similar
    limitations but the mechanical time constraints are non-existant.

    So in your case the arrangement of files on a USB disk is irrelevant.


    --
    Graham J

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Big Al@21:1/5 to jaugustine@verizon.net on Mon Sep 23 13:58:05 2024
    On 9/23/24 12:38 PM, jaugustine@verizon.net wrote:
    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into another flash drive (FAT32) in the same order (NOT alphabetical), is there
    a way to do this, perhaps with an app that is NOT part of Windows?

    Thank You in advance, John

    If somehow songs are ordered properly then I too believe it's a function of the viewer.
    I usually add the track # to a song title (filename) so programs like Explorer.exe etc will display
    properly.
    Some music organization / viewer program could possibly pull exif data from the song and grab the
    track # and behind the scenes sort on the 'hidden' field. But for me putting the track # into the
    filename seems to cover all bases.
    --
    Linux Mint 21.3, Cinnamon 6.0.4, Kernel 5.15.0-122-generic
    Al

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Big Al on Mon Sep 23 20:12:16 2024
    On 2024-09-23 19:58, Big Al wrote:
    On 9/23/24 12:38 PM, jaugustine@verizon.net wrote:
    Hi,

         I have several USB flash drives (FAT32) with folders that have
    Names of
    Music Albums and in each folder the Songs are NOT in alphabetical order.

         To make a duplicate of this flash drive (FAT32) and Copy
    everything into
    another flash drive (FAT32) in the same order (NOT alphabetical), is
    there
    a way to do this, perhaps with an app that is NOT part of Windows?

               Thank You in advance, John

    If somehow songs are ordered properly then I too believe it's a function
    of the viewer.

    In MsDOS the dir command can display the files in the actual order they
    have in the directory structure. This order is not related to the order
    of the clusters that make up the files.

    File management tools can display in this order if you select order:
    unordered.


    Music playing tools will normally sort all the names alphabetically and
    play in that order; thus the creator takes care to number the tracks so
    that the alphabetical order matches the order in which they should be
    played.


    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From R.Wieser@21:1/5 to All on Mon Sep 23 20:14:34 2024
    John,

    To make a duplicate of this flash drive (FAT32) and Copy everything
    into another flash drive (FAT32) in the same order (NOT alphabetical),
    is there a way to do this, perhaps with an app that is NOT part of
    Windows?

    The sorted copying seems to be a side-effect of the file browser (just make sure ypu're not looking at the *copied* result with a filebrowser, as it
    will ofcourse *display* everything in the sort-mode of your choice).

    The answer seems to be to use *any* other copying method. On a bit older OS (in my case, XP) I could just use a bit of VBScript for it. Perhaps on W10
    you could see if there is some PowerShell script for it.


    But before you do that I would suggest to see if your OS (stil) has got the venerable (commandline) XCOPY command and try that first.

    Regards,
    Rudy Wieser

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Frank Slootweg@21:1/5 to Ed Cryer on Mon Sep 23 18:53:55 2024
    Ed Cryer <ed@somewhere.in.the.uk> wrote:
    jaugustine@verizon.net wrote:
    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of
    Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into
    another flash drive (FAT32) in the same order (NOT alphabetical), is there a way to do this, perhaps with an app that is NOT part of Windows?

    Thank You in advance, John

    OK, so you have the songs in the original order for the albums. That's
    more than sensible! Some albums were designed and planned that way. And,
    if you're like me, your head expects that order for your your
    favourites. Imagine listening to a classical symphony with the movements
    in random order!?

    Indeed. That's why most music programs ('rippers', etc.) use filenames
    like:

    01 <songname>.<ext>
    02 <songname>.<ext>
    etc.

    So it's probably best to first fix the source names and then copy the
    files to the second USB memory-stick.

    Personally, I'd use Macrium Reflect for this; clone from original drive
    to a new one.

    If John (Augustine) has Macrium Reflect or a similar cloning tool,
    that is indeed a good approach.

    Another method would be to copy the files one at the time. I.e. get
    the list of filenames in the desired (non-alphabetical) order and use
    that in a .bat 'script' to copy the files one at the time (with the COPY
    or XCOPY command). As Carlos hints at, for a FAT(32) filesystem that
    will put them in the desired order on the target USB memory-stick.

    --
    Frank Slootweg, Where's DISKCOPY for USB memory sticks?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to jaugustine@verizon.net on Mon Sep 23 14:51:45 2024
    On Mon, 9/23/2024 12:38 PM, jaugustine@verizon.net wrote:
    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into another flash drive (FAT32) in the same order (NOT alphabetical), is there
    a way to do this, perhaps with an app that is NOT part of Windows?

    Thank You in advance, John


    Maybe you ripped with Exact Audio Copy ?

    When Windows rips a CD, the filename of the track is like this.

    01 Prime Time.m4a

    and by placing the numeric track number in front of the
    filename like that, it ensures the materials will copy
    nicely, with default viewer choices and no gymnastics.

    You would need something like the metadata off GraceNote,
    to have a reference for what the track numbers should be,
    when attempting to renumber the files.

    I would copy the materials off the USB stick, and then
    take on the project of modifying the filename so the
    track number is in front.

    You could try pointing some windows software at a
    separately maintained copy of the USB stick (not copied yet
    into the Music folder), and see if Windows will "Import"
    into Music and contact GraceNotes to compare filenames
    and file sizes and work out what album that is.

    When you set up the old Windows Media Player, there are
    privacy settings, so it won't contact GraceNote for metadata.
    whatever tool does the importing into Windows today, may have
    a similar privacy setting which you define on "first-run"
    of the tool.

    I only have one CD in my "Music" collection, and as
    part of the ripping process, Windows fetches "AlbumArtSmall.jpg"
    from GraceNote. And that is in the same folder as the tracks.
    There isn't a JPG file on the actual CD, so it did not come from there.

    In any case, there does exist an archive of metadata information,
    which Microsoft has paid for. And normally, it is accessed during
    the ripping process.

    Notice that when Windows rips, it's compressed as .m4a (Mpeg4 audio?)
    and Exact Audio Copy or similar will use some other format, like
    an uncompressed filetype (which is larger). Whether that will
    trigger the Windows tool to bludgeon the file, who knows :-)
    (Compress it into a format not compatible with some other
    project you have in mind.) Other softwares like to aim for
    byte-by-byte accuracy, which of course the music industry hates.
    Storing files as .m4a or .mp3 and placing compression artifacts
    in your archive, now the music industry likes that (so you can't offer
    people "exact" copies of an album). This is also why some hardware,
    used to zero out the LSbits on the hardware, to prevent the
    hardware from making 24 bit accurate audio recordings. That might be
    what audio over S'PDIF has done to it, to ruin it (as otherwise,
    stereo over S'PDIF is unmolested, and does not need AC3 compression).

    I guess we could call all of the above, the "curse of automation".

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to E.R." on Mon Sep 23 22:46:25 2024
    In alt.comp.os.windows-10, on Mon, 23 Sep 2024 20:12:16 +0200, "Carlos
    E.R." <robin_listas@es.invalid> wrote:

    On 2024-09-23 19:58, Big Al wrote:
    On 9/23/24 12:38 PM, jaugustine@verizon.net wrote:
    Hi,

         I have several USB flash drives (FAT32) with folders that have
    Names of
    Music Albums and in each folder the Songs are NOT in alphabetical order. >>>
         To make a duplicate of this flash drive (FAT32) and Copy
    everything into
    another flash drive (FAT32) in the same order (NOT alphabetical), is
    there
    a way to do this, perhaps with an app that is NOT part of Windows?

               Thank You in advance, John

    If somehow songs are ordered properly then I too believe it's a function
    of the viewer.

    In MsDOS the dir command can display the files in the actual order they
    have in the directory structure. This order is not related to the order
    of the clusters that make up the files.

    You beat me to it. I think the option is /u , unsorted.

    File management tools can display in this order if you select order: >unordered.

    There is some sort of dos command that displays files ina multi-line
    array that a gui does, but I don't know if that will help here.

    Music playing tools will normally sort all the names alphabetically and
    play in that order; thus the creator takes care to number the tracks so
    that the alphabetical order matches the order in which they should be
    played.

    If dos has no copy command, or Xcopy command that copies unsorted,
    xxcopy surely has one. It has just about everything.

    The author Kan Yabumoto has died without making arrangements to continue
    the company, and Pixielab is out of business, but there are places to dl
    the file, or if you want I can send you my copy. The free version
    works, without advertising, and without expiring.

    The free version has so many options I can't remember them all, so I've
    often wondered what the pro version has that the free one doesn't. Unfortunately, there is no one to activate the pro-version, so you
    don't have to worry about that.

    If there is a problem with these sources, I'll email you a copy: https://www.majorgeeks.com/files/details/xxcopy.html
    Ver 3.33.3 which is what I have.
    I will send you the file lengths if you want to compare.

    https://download.cnet.com/xxcopy/3000-2248_4-10648429.html

    I user XXCopy with win10 and a cmd box all the time, never had a problem
    with it, despite what literally just one or two webpages claim.

    /SGA Gathers files into one-level directory (unsorted Last one
    prevails)
    /SGF Gathers files into one-level directory (unsorted First file 1st)

    DEspite the fact that you already have a a one-level source directory, I
    think what matters her is that it's an option of a copy program that
    does not sort.

    Probably doesn't apply here but shows how powerful xxcopy is: Note:
    Regarding options /SGFo (First only), /SGNo (Newest only), and /SGoo
    (Oldest only), if there are files in the source tree that have identical
    names, only one will be copied to the destination one-level directory.
    That file being either the first file with the identical name that is
    found, the oldest file with the identical name, or the newest file with
    the identical name, depending upon which option you use.

    This does apply:
    By popular demand by XXCOPY users, we re-engineered the new
    file-gathering
    functions /SG and its variations which retain the original filename.

    /SG same as /SGN (newest one and sorted by newness)
    /SGN sorted, newest file first
    /SGO sorted, oldest file first
    /SGF unsorted, first come first served

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to jaugustine@verizon.net on Tue Sep 24 04:58:01 2024
    On Mon, 9/23/2024 12:38 PM, jaugustine@verizon.net wrote:
    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into another flash drive (FAT32) in the same order (NOT alphabetical), is there
    a way to do this, perhaps with an app that is NOT part of Windows?

    Thank You in advance, John


    I wonder if, when the files were ripped, the creation time of the file
    is proportional to the track number. Track 01 saved first,
    Track 02 saved second, and so on. Maybe the implicit

    01 - name of first track.mp3
    02 - name of second track.mp3

    can be derived from the date ?

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to jaugustine@verizon.net on Tue Sep 24 08:21:43 2024
    In alt.comp.os.windows-10, on Mon, 23 Sep 2024 12:38:55 -0400, jaugustine@verizon.net wrote:

    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of
    Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into
    another flash drive (FAT32) in the same order (NOT alphabetical), is there
    a way to do this, perhaps with an app that is NOT part of Windows?

    Thank You in advance, John

    XXCopy seems like the best bet to me. TCC/LE is also a very valuable
    dos addition, and its version of Xcopy and Copy are quite enhanced, but
    neither includes unsorted. Unless unsorted is the default?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew@21:1/5 to Frank Slootweg on Tue Sep 24 14:40:54 2024
    Frank Slootweg wrote on 23 Sep 2024 18:53:55 GMT :

    Indeed. That's why most music programs ('rippers', etc.) use filenames like:

    01 <songname>.<ext>
    02 <songname>.<ext>
    etc.

    So it's probably best to first fix the source names and then copy the
    files to the second USB memory-stick.

    I follow Frank's advice when I use wget to download thousands of free
    public VPN server files at a time, where they are named by their IP
    address, which has two problems, one of which is they sort by name but the other is Windows sorts numbers funnily (1 and 10 go before 2 for example).

    What I use is a simple method someone taught me here on this newsgroup.
    In an instant, I make a list of all the files by their timestamp.

    Then I simply edit that list using vim to "move" the filenames as needed. Here's the command to make the list of files by the timestamp for the OP.

    powershell
    get-childItem | sort-object -prop lastWriteTimeUtc | forEach { "{0} {1}" -f $_.lastWriteTimeUtc.toString("yyyyMMddHHmmssffff"), $_.name } > dated.txt

    And, for the OP, here's an example of how I subsequently edit that list.
    vim dated.txt
    %s/\(freevpnservers_\)\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\)\(.*\)\(.ovpn\)/move \1\2\3\4 \2\4

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Herbert Kleebauer@21:1/5 to Mr. Man-wai Chang on Tue Sep 24 18:10:22 2024
    On 24.09.2024 17:19, Mr. Man-wai Chang wrote:
    On 24/9/2024 12:38 am, jaugustine@verizon.net wrote:
    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of >> Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into
    another flash drive (FAT32) in the same order (NOT alphabetical), is there >> a way to do this, perhaps with an app that is NOT part of Windows?

    I think COPY, XCOPY and ROBOCOPY never ever sorted the order of files
    when copying files... but then I had never tried to find out.... :)



    copy e:\*.* f:\

    should do it (if the drive letters for the two flash drives are e: and f:
    But I would prefix it with numbers, so they are also listed correctly in explorer.

    set n=1000
    for %%i in (e:\*.*) do (
    call copy %%i f:\%%n%%_%%~ni
    set /a n=n+1)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Herbert Kleebauer@21:1/5 to Herbert Kleebauer on Tue Sep 24 18:27:33 2024
    On 24.09.2024 18:10, Herbert Kleebauer wrote:
    On 24.09.2024 17:19, Mr. Man-wai Chang wrote:
    On 24/9/2024 12:38 am, jaugustine@verizon.net wrote:
    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of
    Music Albums and in each folder the Songs are NOT in alphabetical order. >>>
    To make a duplicate of this flash drive (FAT32) and Copy everything into
    another flash drive (FAT32) in the same order (NOT alphabetical), is there >>> a way to do this, perhaps with an app that is NOT part of Windows?

    I think COPY, XCOPY and ROBOCOPY never ever sorted the order of files
    when copying files... but then I had never tried to find out.... :)



    copy e:\*.* f:\

    should do it (if the drive letters for the two flash drives are e: and f:
    But I would prefix it with numbers, so they are also listed correctly in explorer.

    set n=1000
    for %%i in (e:\*.*) do (
    call copy %%i f:\%%n%%_%%~ni
    set /a n=n+1)


    Sorry, just noticed that the files are not at the top level
    of the flash drive, so you have to loop through all folders.

    But if you only want a backup, use tar (which is part of Windows)
    to store the whole flash drive in a single file on your disk. When you
    extract the files later, you get the same order back.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to jaugustine@verizon.net on Tue Sep 24 23:34:05 2024
    In alt.comp.os.windows-10, on Mon, 23 Sep 2024 12:38:55 -0400, jaugustine@verizon.net wrote:

    Hi,

    I have several USB flash drives (FAT32) with folders that have Names of
    Music Albums and in each folder the Songs are NOT in alphabetical order.

    To make a duplicate of this flash drive (FAT32) and Copy everything into
    another flash drive (FAT32) in the same order (NOT alphabetical), is there
    a way to do this, perhaps with an app that is NOT part of Windows?

    Thank You in advance, John

    After reading this a day ago, and thinking about it in the back of my
    head, I have a vague recollection that if you display the files in DOS
    in a given order, when you copy them they copy in the same order. This
    sounds unlikely, but it would't take long to test.

    BUT, even if I'm wrong here and I probably am, you can "pipe" the output
    of the direcotry command to the input of the copy command. In one line, something like this: dir .... /b /o:proper-option | xcopy
    OR > xcopy

    I forget the difference beween | and > , and in addtion I don't know how
    to take the output from the Dir command and make it the input to the
    xcopy command but I know it can be done. Read the instructions for the |
    and > commands. I know they exist in MS-Dos and CMD, but don't forget
    that TCC/LW has enhanced commands. I'm looking at Help for TCC/LE now
    and it has the option /o:u meaning unsorted, what you want.

    You know even if you don't need it now, everyone should download anbd
    install TCC/LE (which is the free version of Take Command) so that you
    have it in case something goes wrong with the company and it becomes
    hard to get, like happened with XXCopy and the Edsel.


    You need the /b option for copy to copy ONLY the file name, and not the
    header or footer information or the size, date, attributes, which will
    just confuse following XCopy command.

    I forget.. You may need to list another option to enable the output to
    be piped, but maybe the pipe symbol is all you need.
    This page https://www.lifewire.com/dir-command-4050018 at first I
    thought contradicts what the guy in the link below says about order with
    no /o, but it doesn't because that guy is talking about not using /o at
    all.

    Redirecting Input and Output
    "The | command is called a pipe. It is used to pipe, or transfer, the
    standard output from the command on its left into the standard input of
    the command on its right."

    Didn't find anything yet about the > command and still don't remember
    what is different about it.

    Is the MSdos newsgroup still active?

    To display a list of files in sorted order, enter
    DIR [d:][path][filename] /O:(order)

    According to the next link, unsorted order is obtained when no /o parm
    is used at all.

    What order should you specify? https://superuser.com/questions/481570/default-file-order-of-dir-command-in-windows-console
    -- dated 12 years ago, modified 2.5 years ago --
    says, but I don't know if was truo or is still true (I have doubts): dir (without arguments) command always shows files/dirs unsorted, in other
    words - in same order, as files/dirs are located on disk. NTFS file
    system "sorts" files/dirs internally (simplifying). --- So does the
    last sentence contreadict the rest of it? Just ghet TCC/LE and then
    there is no question what it does.

    Another guy says
    The order is "undefined", see below. But this is an XY problem because
    there are a lot of tools made for your real sorting purpose
    mp3DirSorter
    YAFS: Yet Another FAT Sorter
    FAT Reader
    FAT-32 Sorter
    FAT Sorter
    Sort MP3 Files On MP3 Player
    https://github.com/maxpat78/FATtools
    https://svnpenn.github.io/rosso/
    How to reorder the files of a FAT32 file system?

    According to Microsoft's dir documentation (emphasis mine)

    /o [[:]SortOrder]: Controls the order in which dir sorts and
    displays directory names and file names. If you omit /o, dir displays
    the names in the order in which they occur in the directory. If you use
    /o without specifying SortOrder, dir displays the names of the
    directories, sorted in alphabetic order, and then displays the names of
    files, sorted in alphabetic order. The colon (:) is optional.

    The order in which files occur in a directory depends on the file system
    and how they store file lists in a directory entry:

    In FAT12/16/32 the file allocation table is just a simple linear
    list and when a new file is created it's simply put in an empty space in
    the list. Hence depending on the creation and deletion state the list
    order will vary. That explains why mp3 players often play in the order
    you copy files to the folder
    In NTFS directory entries are stored in a B-tree structure, so the
    result will be an almost-sorted list

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From micky@21:1/5 to NONONOmisc07@fmguy.com on Tue Sep 24 23:44:44 2024
    In alt.comp.os.windows-10, on Tue, 24 Sep 2024 23:34:05 -0400, micky <NONONOmisc07@fmguy.com> wrote:


    Redirecting Input and Output
    "The | command is called a pipe. It is used to pipe, or transfer, the >standard output from the command on its left into the standard input of
    the command on its right."

    Didn't find anything yet about the > command and still don't remember
    what is different about it.

    I see that > is not for you.

    https://ss64.com/nt/syntax-redirection.html

    command > filename Redirect command output to a file

    So all this does is send the output to a file. You want to send it to
    the imput of the next command. You want:

    commandA | commandB
    Pipe the output from commandA into commandB

    I think for Dir commands, the standard output is to the screen, so if
    that's so, you won't need more parms.



    For the record there is also:
    commandA & commandB Run commandA and then run commandB
    commandA && commandB Run commandA, if it succeeds then run commandB
    commandA || commandB Run commandA, if it fails then run commandB
    commandA && commandB || commandC
    If commandA succeeds run commandB, if commandA fails run commandC
    If commandB fails, that will also trigger running commandC.

    A lot to keep track of, huh!

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)