• Reference a library on the command line?

    From Stan Brown@21:1/5 to All on Sat Feb 4 16:41:09 2023
    Here's what I'm trying to accomplish. I want to put my iTunes music
    library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files. So I need to split
    the library between two USB sticks. With robocopy, that shouldn't be
    hard: before I knew about the 9999-file limit, robocopy transferred
    all 70 GB of my iTunes library to a USB stick in about 4 minutes.

    But I'm having trouble setting up the split. I can't list the
    directories on the robocopy command line, because there would be
    hundreds of them. (I want to use robocopy because I want to automate
    updates to the USB sticks when I add or update files and folders in
    iTunes.)

    I thought this would be a perfect use for libraries, so I created two libraries, each with <9999 files. But I can't figure out the syntax
    to put on the robocopy command line. I found my two libraries at <C:\Users\Stan\AppData\Roaming\Microsoft\Windows\Libraries \_Classical.library-ms> and <C:\Users\Stan\AppData\Roaming\Microsoft\Windows\Libraries \_Nonclassical.library-ms>
    but those are XML files and I can't imagine robocopy would know what
    to do with them.

    Ideally I would just SUBST pseudo-drive letters to the two libraries,
    but to use SUBST I need a file path to the library. (It wouldn't
    necessarily have to be SUBST; I just mentioned that because it would
    make writing the robocopy command trivially easy. For that matter, it
    wouldn't have to be libraries if there's a better way.)

    I googled for library windows command line, but got no useful hits.
    Am I just out of luck, or is there some way to do this?

    The only thing I can think of to do is write hundreds of robocopy
    commands to sync each top-level directory under my iTunes directory
    to one or the other of the two sticks, but that seems like a giant
    pain.

    Thanks in advance for help!

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to All on Sat Feb 4 16:55:11 2023
    Well, libraries are _not_ going to help me.

    I had only partially populated the two libraries before posting my
    query, and went back to continue populating them after posting.

    There seems to be a hard limit on the number of folders you can
    include in a library: just 50. When I attempted to add a 51st folder
    to the library, Windows just says "The folder could not be included
    in _Classical." And it's n not related to the specific folder I'm
    trying to add: I tried a couple of other ones.

    So libraries are off the table. I'd still love suggestions for how I
    could automate this easily. At this point all I can think to do is to
    use DIR to get a list of folders in my iTunes library and write a
    batch file to sync them one by one with the _Classical or
    _Nonclassical USB stick.

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Char Jackson@21:1/5 to the_stan_brown@fastmail.fm on Sun Feb 5 01:47:19 2023
    On Sat, 4 Feb 2023 16:41:09 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    Here's what I'm trying to accomplish. I want to put my iTunes music
    library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files. So I need to split
    the library between two USB sticks. With robocopy, that shouldn't be
    hard: before I knew about the 9999-file limit, robocopy transferred
    all 70 GB of my iTunes library to a USB stick in about 4 minutes.

    But I'm having trouble setting up the split. I can't list the
    directories on the robocopy command line, because there would be
    hundreds of them. (I want to use robocopy because I want to automate
    updates to the USB sticks when I add or update files and folders in
    iTunes.)

    In the music folder on your PC, I would create two new folders,
    _Nonclassical and _Classical. Now populate those two folders with your
    music, making sure each folder stays below 9999 files. Lastly, copy each
    of those two folders to its own USB stick, or if you don't like copying
    the parent folder, simply copy the contents of each folder to its own
    USB stick.

    If you don't want to make those kinds of changes to your main music
    folder, just make a copy first and then work from that.

    Robocopy to keep everything updated should be a snap after that.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Stan Brown on Sun Feb 5 03:21:03 2023
    On 2023-02-05 01:41, Stan Brown wrote:
    Here's what I'm trying to accomplish. I want to put my iTunes music
    library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files.

    There is another possibility: create an index file (something.m3u) of
    the audios and put it on the stick.

    https://en.wikipedia.org/wiki/M3U

    Then, in your car player point it to play the index file. I have the
    hunch (not verified yet) that this way the car player doesn't need to
    index itself the files (or can be ignored). I am using this method in my
    car, but I really do not know if I have reached song 9999 + 1 yet or not :-D

    Sure, the car try to index the thumbdrive every time I start the car,
    but it keeps playing the list I gave it.


    (I used this method initially for a different reason: to control the
    order in which the songs are played.)

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Newyana2@21:1/5 to Stan Brown on Sun Feb 5 08:48:21 2023
    "Stan Brown" <the_stan_brown@fastmail.fm> wrote

    | But I'm having trouble setting up the split.

    As Char said, I would just set up two folders. It would
    also be a simple job with VBScript or "jscript", but only
    if you're familiar with Windows Script Host. I've done something
    similar for a friend. She travels a lot and likes to back up her
    photos on DVD. So I wrote a script to create folders and
    auto-apportion DVD-size collections in each folder, so that
    all could be easily backed up with a given number of DVDs.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Char Jackson on Sun Feb 5 08:07:12 2023
    On Sun, 05 Feb 2023 01:47:19 -0600, Char Jackson wrote:

    On Sat, 4 Feb 2023 16:41:09 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    Here's what I'm trying to accomplish. I want to put my iTunes music
    library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files. So I need to split
    the library between two USB sticks. With robocopy, that shouldn't be
    hard: before I knew about the 9999-file limit, robocopy transferred
    all 70 GB of my iTunes library to a USB stick in about 4 minutes.

    But I'm having trouble setting up the split. I can't list the
    directories on the robocopy command line, because there would be
    hundreds of them. (I want to use robocopy because I want to automate >updates to the USB sticks when I add or update files and folders in >iTunes.)

    In the music folder on your PC, I would create two new folders,
    _Nonclassical and _Classical. Now populate those two folders with your
    music, making sure each folder stays below 9999 files. Lastly, copy each
    of those two folders to its own USB stick, or if you don't like copying
    the parent folder, simply copy the contents of each folder to its own
    USB stick.

    If you don't want to make those kinds of changes to your main music
    folder, just make a copy first and then work from that.

    Robocopy to keep everything updated should be a snap after that.

    Thanks for the suggestion.

    iTunes is set to manage the library, because some bad experiences a
    few years back showed me that iTunes gets cranky if I manage the
    files in the library. So to follow your suggestion I would need to
    make a second copy of all 70 GB, outside of iTunes.

    I really, really don't like having duplicates (apart from backups),
    because it means whenever I change one copy I must manually change
    the other. At best it's extra work; at worst I thumb-fingeredly make
    different changes to the two.

    This isn't just a theoretical problem. I add music fairly often, and
    I change existing files though less often: to change ratings, add
    lyrics, correct a year or a misspelling, and so forth.

    If there were an automated way to keep the original and the split
    folders in sync, that objection would disappear. But if there were an
    automated method, then I could just use it to populate the two USB
    sticks. :-)

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Carlos E.R. on Sun Feb 5 08:18:33 2023
    On Sun, 5 Feb 2023 03:21:03 +0100, Carlos E.R. wrote:

    On 2023-02-05 01:41, Stan Brown wrote:
    Here's what I'm trying to accomplish. I want to put my iTunes music
    library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files.

    There is another possibility: create an index file (something.m3u) of
    the audios and put it on the stick.

    https://en.wikipedia.org/wiki/M3U

    Then, in your car player point it to play the index file. I have the
    hunch (not verified yet) that this way the car player doesn't need to
    index itself the files (or can be ignored). I am using this method in my
    car, but I really do not know if I have reached song 9999 + 1 yet or not :-D

    Sure, the car try to index the thumbdrive every time I start the car,
    but it keeps playing the list I gave it.

    (I used this method initially for a different reason: to control the
    order in which the songs are played.)

    This is intriguing. I've read the article, and it doesn't mention
    cars, so it's good to know that you've successfully used this in your
    car. If I could violate the 9999-file limit, that would definitely
    solve my problem and I could then use a single robocopy command. I'll
    try that and report back.

    Have you experimented with multiple playlists at all? My car will
    interact with playlists when I connect an iPod through the USB port,
    but I didn't think playlists were possible when using a USB thumb
    drive.

    (Why don't I just use the iPod, then? The car gets pretty hot when
    parked, and I don't want to degrade the battery. Also there's the
    small but nonzero chance of dropping the iPod when transferring it
    many times between car and house. Even in its protective case, I
    wouldn't want to drop it on concrete.)

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Paul@21:1/5 to Stan Brown on Sun Feb 5 12:37:24 2023
    On 2/5/2023 11:07 AM, Stan Brown wrote:


    I really, really don't like having duplicates (apart from backups),
    because it means whenever I change one copy I must manually change
    the other. At best it's extra work; at worst I thumb-fingeredly make different changes to the two.

    I don't want to turn this into a computer science project,
    but if you use hardlinks for the files, you have one set
    of data clusters and two file handles.

    dir1/beegees.mp3 ---
    \___ Hardlinked
    /
    dir2/beegees.mp3 ---

    If you have a new version of beegee.mp3, if you copy it
    into dir2, the data content of the dir1 pointer automatically
    matches.

    Say dir1 is the populated folder, you have just
    created dir2 which is empty. This should cause
    beegees.mp3 to appear in dir2.

    mklink /?
    MKLINK [[/D] | [/H] | [/J]] Link Target

    cd directory_above_dir1_and_dir2

    mklink /h dir2/beegees.mp3 dir1/beegees.mp3

    The two copies of beegees.mp3 are equal in every
    respect. Only deleting both of them, frees up
    the disk space. Either one can be deleted without
    upsetting the other.

    But saving new content to one of them, makes that
    new content appear on the other one magically.

    Any time a new filename is added to dir1, you will need
    to make the hardlink to dir2, to continue your
    directory discipline.

    The purpose of the hardlink, is to ensure the content
    is the same, just by updating one of the files.

    Hardlinks must be on the same physical volume and partition.
    Symbolic links (junctions?) can be used when using two
    different drives, but then, the discipline of using
    the two folders is entirely different. With symbolic links,
    one directory is the master.

    *******

    While you can hardlink dir1 to dir2, yes, files appear
    magically in the second folder (don't need to hardlink at
    the file level), but deleting the appearance
    of a file in either folder, deletes it from the partner folder.

    With symbolic links (junctions?), the relationship is even
    more lopsided and perhaps, not that useful. A small benefit
    of a symbolic link, is it can go between two hard drives.

    *******

    When Robocopy copies a hardlink file, it seems to make an
    ordinary file of it, at the destination.

    Macrium properly handles these things, taking no extra space
    by accident. Macrium copies at the cluster level, as well as
    keeping file indexes. Since beegee.mp3 only has one set
    of clusters and not two sets, only one set of clusters
    is needed to back it up.

    These weird file system features, do not integrate well,
    and cause utility writers to pull their hair out. The
    guy who wrote hashdeep64 for example, he had to add like
    a dozen command line options, to disable traversal or the
    poking of "features". For example, the file system can
    have "sockets", and if you attempt to read a socket left
    behind by the OS, your application "stalls on the read".
    Comedy ensues (hashdeep run never finishes). This means
    the author of Robocopy, also had a shitload of issues to
    confront. This is a downside of larding up a filesystem
    design with "crap".

    Even File Explorer does not handle hardlinks properly, in
    the sense that any Properties dialog may display incorrect
    storage size information, about how much space a section
    of file tree is taking. Only the pie chart for the entire
    C: is accurate (and the fools even managed to break that
    when releasing Windows 11). I think the bug in W11 was
    corrected, but I have not verified this (yet again).

    Paul

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Stan Brown on Sun Feb 5 20:34:32 2023
    On 2023-02-05 17:18, Stan Brown wrote:
    On Sun, 5 Feb 2023 03:21:03 +0100, Carlos E.R. wrote:
    On 2023-02-05 01:41, Stan Brown wrote:
    Here's what I'm trying to accomplish. I want to put my iTunes music
    library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files.

    There is another possibility: create an index file (something.m3u) of
    the audios and put it on the stick.

    https://en.wikipedia.org/wiki/M3U

    Then, in your car player point it to play the index file. I have the
    hunch (not verified yet) that this way the car player doesn't need to
    index itself the files (or can be ignored). I am using this method in my
    car, but I really do not know if I have reached song 9999 + 1 yet or not :-D >>
    Sure, the car try to index the thumbdrive every time I start the car,
    but it keeps playing the list I gave it.

    (I used this method initially for a different reason: to control the
    order in which the songs are played.)

    This is intriguing. I've read the article, and it doesn't mention
    cars,

    It is just an mp3 player, and all seems to have this capability.

    so it's good to know that you've successfully used this in your
    car. If I could violate the 9999-file limit, that would definitely
    solve my problem and I could then use a single robocopy command. I'll
    try that and report back.

    Have you experimented with multiple playlists at all? My car will
    interact with playlists when I connect an iPod through the USB port,
    but I didn't think playlists were possible when using a USB thumb
    drive.

    I did write two lists, but I only use one. The thing is, if I change the
    list it starts again on song number #1.

    If the list file also has a limit of 9999, you could then try two or
    three files, each with 9999 different songs.


    (Why don't I just use the iPod, then? The car gets pretty hot when
    parked, and I don't want to degrade the battery. Also there's the
    small but nonzero chance of dropping the iPod when transferring it
    many times between car and house. Even in its protective case, I
    wouldn't want to drop it on concrete.)

    And a thief might be tempted to steal it. Just a thumbdrive is
    reasonable. A phone via BT also works fine. That's what I use to listen
    to something out of order in my list, instead of plugging a different thumbdrive.


    Curio trick: I use an USB hub (powerless) in the car. The car
    ridiculously only has one USB socket, but I need two: one for the
    thumbdrive, another for the phone to use on the integrated Android Auto.
    The car electronics never mentions using a hub, but it works fine. Mine
    was made by LG (from factory; it is not "Opel" as we would assume on
    first look).

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Char Jackson@21:1/5 to the_stan_brown@fastmail.fm on Sun Feb 5 16:11:50 2023
    On Sun, 5 Feb 2023 08:07:12 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    On Sun, 05 Feb 2023 01:47:19 -0600, Char Jackson wrote:

    On Sat, 4 Feb 2023 16:41:09 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    Here's what I'm trying to accomplish. I want to put my iTunes music
    library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files. So I need to split
    the library between two USB sticks. With robocopy, that shouldn't be
    hard: before I knew about the 9999-file limit, robocopy transferred
    all 70 GB of my iTunes library to a USB stick in about 4 minutes.

    But I'm having trouble setting up the split. I can't list the
    directories on the robocopy command line, because there would be
    hundreds of them. (I want to use robocopy because I want to automate
    updates to the USB sticks when I add or update files and folders in
    iTunes.)

    In the music folder on your PC, I would create two new folders,
    _Nonclassical and _Classical. Now populate those two folders with your
    music, making sure each folder stays below 9999 files. Lastly, copy each
    of those two folders to its own USB stick, or if you don't like copying
    the parent folder, simply copy the contents of each folder to its own
    USB stick.

    If you don't want to make those kinds of changes to your main music
    folder, just make a copy first and then work from that.

    Robocopy to keep everything updated should be a snap after that.

    Thanks for the suggestion.

    iTunes is set to manage the library, because some bad experiences a
    few years back showed me that iTunes gets cranky if I manage the
    files in the library. So to follow your suggestion I would need to
    make a second copy of all 70 GB, outside of iTunes.

    I really, really don't like having duplicates (apart from backups),
    because it means whenever I change one copy I must manually change
    the other. At best it's extra work; at worst I thumb-fingeredly make >different changes to the two.

    This isn't just a theoretical problem. I add music fairly often, and
    I change existing files though less often: to change ratings, add
    lyrics, correct a year or a misspelling, and so forth.

    If there were an automated way to keep the original and the split
    folders in sync, that objection would disappear. But if there were an >automated method, then I could just use it to populate the two USB
    sticks. :-)

    For the "automated way to keep things in sync" problem, there are
    multiple free file sync programs, or since you already have access to
    Robocopy, you could use that, with a single button push to launch with appropriate arguments, to keep the folders in sync with the master.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Carlos E.R. on Sun Feb 5 19:07:05 2023
    On Sun, 5 Feb 2023 03:21:03 +0100, Carlos E.R. wrote:

    On 2023-02-05 01:41, Stan Brown wrote:
    Here's what I'm trying to accomplish. I want to put my iTunes music
    library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files.

    There is another possibility: create an index file (something.m3u) of
    the audios and put it on the stick.

    https://en.wikipedia.org/wiki/M3U

    Then, in your car player point it to play the index file. I have the
    hunch (not verified yet) that this way the car player doesn't need to
    index itself the files (or can be ignored). I am using this method in my
    car, but I really do not know if I have reached song 9999 + 1 yet or not :-D

    Sure, the car try to index the thumbdrive every time I start the car,
    but it keeps playing the list I gave it.

    Does the M3U need to be in the root directory? I had 10,000+ files on
    the USB stick and in the M3U file, which was in the Music folder.
    Nonetheless, the car took 15 minutes or so to index everything (same
    as before I had the M3U file), and stopped at the 9999th file. (That
    was midway in the V's, and there were no W, X, Y, or Z available in
    Browse.)

    I moved the M3U file to the root folder, changing all the relative
    paths accordingly, but when I started up the car it started in on
    doing its own indexing. I didn't feel like sitting in the garage for
    15-20 minutes.

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Char Jackson on Sun Feb 5 19:15:56 2023
    On Sun, 05 Feb 2023 16:11:50 -0600, Char Jackson wrote:

    For the "automated way to keep things in sync" problem, there are
    multiple free file sync programs, or since you already have access to Robocopy, you could use that, with a single button push to launch with appropriate arguments, to keep the folders in sync with the master.

    Did you miss the post where I described the issue in detail? If I
    need to split the iTunes library into two USB sticks, that means
    specifying 275 robocopy commands, because there are 275 top-level
    folders under Music in my iTunes library.

    I had hopes of a single robocopy command, but my car has a hard limit
    of 9999 files and Carlos's *.M3U technique doesn't seem to be a
    viable workaround for that.

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Paul on Sun Feb 5 19:26:01 2023
    On Sun, 5 Feb 2023 12:37:24 -0500, Paul wrote:

    On 2/5/2023 11:07 AM, Stan Brown wrote:


    I really, really don't like having duplicates (apart from backups),
    because it means whenever I change one copy I must manually change
    the other. At best it's extra work; at worst I thumb-fingeredly make different changes to the two.

    I don't want to turn this into a computer science project,
    but if you use hardlinks for the files, you have one set
    of data clusters and two file handles.

    dir1/beegees.mp3 ---
    \___ Hardlinked
    /
    dir2/beegees.mp3 ---

    If you have a new version of beegee.mp3, if you copy it
    into dir2, the data content of the dir1 pointer automatically
    matches.

    Say dir1 is the populated folder, you have just
    created dir2 which is empty. This should cause
    beegees.mp3 to appear in dir2.

    mklink /?
    MKLINK [[/D] | [/H] | [/J]] Link Target

    cd directory_above_dir1_and_dir2

    mklink /h dir2/beegees.mp3 dir1/beegees.mp3

    The two copies of beegees.mp3 are equal in every
    respect. Only deleting both of them, frees up
    the disk space. Either one can be deleted without
    upsetting the other.

    But saving new content to one of them, makes that
    new content appear on the other one magically.

    Any time a new filename is added to dir1, you will need
    to make the hardlink to dir2, to continue your
    directory discipline.

    The purpose of the hardlink, is to ensure the content
    is the same, just by updating one of the files.

    Hardlinks must be on the same physical volume and partition.
    Symbolic links (junctions?) can be used when using two
    different drives, but then, the discipline of using
    the two folders is entirely different. With symbolic links,
    one directory is the master.

    *******

    While you can hardlink dir1 to dir2, yes, files appear
    magically in the second folder (don't need to hardlink at
    the file level), but deleting the appearance
    of a file in either folder, deletes it from the partner folder.

    With symbolic links (junctions?), the relationship is even
    more lopsided and perhaps, not that useful. A small benefit
    of a symbolic link, is it can go between two hard drives.

    *******

    When Robocopy copies a hardlink file, it seems to make an
    ordinary file of it, at the destination.

    Macrium properly handles these things, taking no extra space
    by accident. Macrium copies at the cluster level, as well as
    keeping file indexes. Since beegee.mp3 only has one set
    of clusters and not two sets, only one set of clusters
    is needed to back it up.

    These weird file system features, do not integrate well,
    and cause utility writers to pull their hair out. The
    guy who wrote hashdeep64 for example, he had to add like
    a dozen command line options, to disable traversal or the
    poking of "features". For example, the file system can
    have "sockets", and if you attempt to read a socket left
    behind by the OS, your application "stalls on the read".
    Comedy ensues (hashdeep run never finishes). This means
    the author of Robocopy, also had a shitload of issues to
    confront. This is a downside of larding up a filesystem
    design with "crap".

    Even File Explorer does not handle hardlinks properly, in
    the sense that any Properties dialog may display incorrect
    storage size information, about how much space a section
    of file tree is taking. Only the pie chart for the entire
    C: is accurate (and the fools even managed to break that
    when releasing Windows 11). I think the bug in W11 was
    corrected, but I have not verified this (yet again).

    Paul

    If I understand you correctly, I'd have to create 12,000+ hardlinks
    for the 12,000+ music files. I confess that I'm not even sure what
    that would accomplish, and given your last couple of paragraphs it
    sounds like this would add a lot of uncertainty to the whole project.

    I think 275 robocopy commands for the 275 top-level folders under
    iTunes\Music are doable, a matter of a few minutes with dir and vim
    to create a batch file. I don't often add a new composer, and when I
    do I just have to add a line to that batch file. But if I had to add
    a hardlink every time I added a music file, that seems like a pain in
    the arsenic.

    Right now I don't have any user junctions, and it sure looks like the
    prudent thing is to keep it that way. Then I don't have worries about
    what Macrium or robocopy will do.

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Zaidy036@21:1/5 to Stan Brown on Sun Feb 5 22:39:15 2023
    On 2/5/2023 10:15 PM, Stan Brown wrote:
    On Sun, 05 Feb 2023 16:11:50 -0600, Char Jackson wrote:

    For the "automated way to keep things in sync" problem, there are
    multiple free file sync programs, or since you already have access to
    Robocopy, you could use that, with a single button push to launch with
    appropriate arguments, to keep the folders in sync with the master.

    Did you miss the post where I described the issue in detail? If I
    need to split the iTunes library into two USB sticks, that means
    specifying 275 robocopy commands, because there are 275 top-level
    folders under Music in my iTunes library.

    I had hopes of a single robocopy command, but my car has a hard limit
    of 9999 files and Carlos's *.M3U technique doesn't seem to be a
    viable workaround for that.

    make a batch using FOR to feed the 275 Robocopy commands

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Char Jackson@21:1/5 to the_stan_brown@fastmail.fm on Sun Feb 5 22:41:20 2023
    On Sun, 5 Feb 2023 19:15:56 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    On Sun, 05 Feb 2023 16:11:50 -0600, Char Jackson wrote:

    For the "automated way to keep things in sync" problem, there are
    multiple free file sync programs, or since you already have access to
    Robocopy, you could use that, with a single button push to launch with
    appropriate arguments, to keep the folders in sync with the master.

    Did you miss the post where I described the issue in detail? If I
    need to split the iTunes library into two USB sticks, that means
    specifying 275 robocopy commands, because there are 275 top-level
    folders under Music in my iTunes library.

    I guess I don't understand why you'd need more than two Robocopy
    commands but never mind me. I'm sure I'm bringing in more of how I'd do
    it and not enough of how you'd do it.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to All on Sun Feb 5 22:02:46 2023
    On Sun, 5 Feb 2023 22:39:15 -0500, Zaidy036 wrote:

    On 2/5/2023 10:15 PM, Stan Brown wrote:
    On Sun, 05 Feb 2023 16:11:50 -0600, Char Jackson wrote:

    For the "automated way to keep things in sync" problem, there are
    multiple free file sync programs, or since you already have access to
    Robocopy, you could use that, with a single button push to launch with
    appropriate arguments, to keep the folders in sync with the master.

    Did you miss the post where I described the issue in detail? If I
    need to split the iTunes library into two USB sticks, that means
    specifying 275 robocopy commands, because there are 275 top-level
    folders under Music in my iTunes library.

    I had hopes of a single robocopy command, but my car has a hard limit
    of 9999 files and Carlos's *.M3U technique doesn't seem to be a
    viable workaround for that.

    make a batch using FOR to feed the 275 Robocopy commands

    But some of them must go to one USB stick, and some must go to the
    other.

    If robocopy had directory wildcards, a la [A-S]*, that would be much
    simpler.

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Char Jackson on Sun Feb 5 22:05:18 2023
    On Sun, 05 Feb 2023 22:41:20 -0600, Char Jackson wrote:
    On Sun, 5 Feb 2023 19:15:56 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    [quoted text muted]
    Did you miss the post where I described the issue in detail? If I
    need to split the iTunes library into two USB sticks, that means
    specifying 275 robocopy commands, because there are 275 top-level
    folders under Music in my iTunes library.

    I guess I don't understand why you'd need more than two Robocopy
    commands but never mind me. I'm sure I'm bringing in more of how I'd do
    it and not enough of how you'd do it.

    Do you know how to specify multiple source directories in a robocopy
    command? I surely don't.



    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Char Jackson@21:1/5 to the_stan_brown@fastmail.fm on Mon Feb 6 02:20:28 2023
    On Sun, 5 Feb 2023 22:05:18 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    On Sun, 05 Feb 2023 22:41:20 -0600, Char Jackson wrote:
    On Sun, 5 Feb 2023 19:15:56 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    [quoted text muted]
    Did you miss the post where I described the issue in detail? If I
    need to split the iTunes library into two USB sticks, that means
    specifying 275 robocopy commands, because there are 275 top-level
    folders under Music in my iTunes library.

    I guess I don't understand why you'd need more than two Robocopy
    commands but never mind me. I'm sure I'm bringing in more of how I'd do
    it and not enough of how you'd do it.

    Do you know how to specify multiple source directories in a robocopy
    command? I surely don't.

    I was thinking you'd split those 275 folders roughly evenly into two new folders, so that there would be only two top level folders under Music
    in your iTunes library. I don't have or use iTunes, though, so I don't
    know anything about having it reindex your Music library so that it
    learns about the two new folders.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Carlos E.R.@21:1/5 to Stan Brown on Mon Feb 6 11:54:32 2023
    On 2023-02-06 04:07, Stan Brown wrote:
    On Sun, 5 Feb 2023 03:21:03 +0100, Carlos E.R. wrote:
    On 2023-02-05 01:41, Stan Brown wrote:
    Here's what I'm trying to accomplish. I want to put my iTunes music
    library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files.

    There is another possibility: create an index file (something.m3u) of
    the audios and put it on the stick.

    https://en.wikipedia.org/wiki/M3U

    Then, in your car player point it to play the index file. I have the
    hunch (not verified yet) that this way the car player doesn't need to
    index itself the files (or can be ignored). I am using this method in my
    car, but I really do not know if I have reached song 9999 + 1 yet or not :-D >>
    Sure, the car try to index the thumbdrive every time I start the car,
    but it keeps playing the list I gave it.

    Does the M3U need to be in the root directory?

    I think so.

    I had 10,000+ files on
    the USB stick and in the M3U file, which was in the Music folder. Nonetheless, the car took 15 minutes or so to index everything (same
    as before I had the M3U file), and stopped at the 9999th file. (That
    was midway in the V's, and there were no W, X, Y, or Z available in
    Browse.)

    I moved the M3U file to the root folder, changing all the relative
    paths accordingly, but when I started up the car it started in on
    doing its own indexing. I didn't feel like sitting in the garage for
    15-20 minutes.

    Well, my car finishes the scanning (gives up) before a minute, I think.
    It starts playing as soon as I want, anyway. As soon as the display
    powers up, which takes "longish", say 10 seconds, if the usb was playing
    when I powered down the car previously. I'll check this next time and
    report back.

    --
    Cheers, Carlos.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Char Jackson on Mon Feb 6 10:14:27 2023
    On Mon, 06 Feb 2023 02:20:28 -0600, Char Jackson wrote:

    On Sun, 5 Feb 2023 22:05:18 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    Do you know how to specify multiple source directories in a robocopy >command? I surely don't.

    I was thinking you'd split those 275 folders roughly evenly into two new folders, so that there would be only two top level folders under Music
    in your iTunes library. I don't have or use iTunes, though, so I don't
    know anything about having it reindex your Music library so that it
    learns about the two new folders.

    You didn't exactly ask, but you might be interested:

    iTunes library structure, at least with the Windows version of
    iTunes, is top-level folders Audiobooks, Movies, Music, and others
    that don't concern us, under the main library folder. BTW, audiobooks
    can be *.m4a, in which case they go under Music instead of
    Audiobooks.

    Under the iTunes library\Music folder, the next level is one
    subfolder per artist, then under each artist folder is one sub-
    subfolder per album.

    I can't remember now what convinced me that it was less hassle to let
    iTunes manage the library its way, but I do remember that it took
    significant time to unsnarl the mess that iTunes created when I did
    it my way. That's why I don't want to go there again.

    But really, 275 robocopy commands for 275 artist folders isn't bad,
    in my mind. I wouldn't try to build that batch file with Notepad, but
    it's quite easy with Vim or, I'm sure, with any decent command-based
    editor. And I already have other batch files that check robocopy logs
    for problems.

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Char Jackson@21:1/5 to the_stan_brown@fastmail.fm on Mon Feb 6 12:18:49 2023
    On Mon, 6 Feb 2023 10:14:27 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    On Mon, 06 Feb 2023 02:20:28 -0600, Char Jackson wrote:

    On Sun, 5 Feb 2023 22:05:18 -0800, Stan Brown
    <the_stan_brown@fastmail.fm> wrote:

    Do you know how to specify multiple source directories in a robocopy
    command? I surely don't.

    I was thinking you'd split those 275 folders roughly evenly into two new
    folders, so that there would be only two top level folders under Music
    in your iTunes library. I don't have or use iTunes, though, so I don't
    know anything about having it reindex your Music library so that it
    learns about the two new folders.

    You didn't exactly ask, but you might be interested:

    iTunes library structure, at least with the Windows version of
    iTunes, is top-level folders Audiobooks, Movies, Music, and others
    that don't concern us, under the main library folder. BTW, audiobooks
    can be *.m4a, in which case they go under Music instead of
    Audiobooks.
    <snip>

    Thanks. I was wondering about that.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Stan Brown@21:1/5 to Stan Brown on Mon Feb 6 23:29:52 2023
    On Sun, 5 Feb 2023 19:07:05 -0800, Stan Brown wrote:

    On Sun, 5 Feb 2023 03:21:03 +0100, Carlos E.R. wrote:

    On 2023-02-05 01:41, Stan Brown wrote:
    Here's what I'm trying to accomplish. I want to put my iTunes music library on a USB stick, but my car will accept only 9999 files on a
    USB stick and simply ignores any additional files.

    There is another possibility: create an index file (something.m3u) of
    the audios and put it on the stick.

    https://en.wikipedia.org/wiki/M3U

    Then, in your car player point it to play the index file. I have the
    hunch (not verified yet) that this way the car player doesn't need to
    index itself the files (or can be ignored). I am using this method in my car, but I really do not know if I have reached song 9999 + 1 yet or not :-D

    Sure, the car try to index the thumbdrive every time I start the car,
    but it keeps playing the list I gave it.

    Does the M3U need to be in the root directory?

    Today I had a longer car trip to make, and with the .m3u file in the
    root folder, the car took around a minute to index everything, versus
    15-20 with the .m3u in the Music folder on the USB stick.

    Unfortunately, this is not ab way around my car's 9999-file limit.
    Even with the .m3u in the root folder, the car ignored entries 10,000
    and later.

    But now I have created and tested a batch file that syncs directly
    from my iTunes library to the two USB sticks. (It also makes sure
    that a given iTunes folder goes to one and only one USB stick.)

    --
    Stan Brown, Tehachapi, California, USA https://BrownMath.com/
    Shikata ga nai...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From The Horny Goat@21:1/5 to All on Tue Aug 1 10:47:26 2023
    On Sun, 5 Feb 2023 22:39:15 -0500, Zaidy036 <Zaidy036@air.isp.spam>
    wrote:

    I had hopes of a single robocopy command, but my car has a hard limit
    of 9999 files and Carlos's *.M3U technique doesn't seem to be a
    viable workaround for that.

    make a batch using FOR to feed the 275 Robocopy commands

    An easier way would be to put the videos into a folder and move the
    folder as in MOVE c:\startrek\*.* d:\startrek\*.* - you can even omit
    the *.*'s if you prefer

    To do what you suggest could easily be done in Windows by
    dir yourmovie*.* >> d:destinationfolder.bat

    then execute the batch file you just created by typing the file name

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