Open deoren opened 5 years ago
Credit for using the *.mp3
pattern with robocopy to filter out content that I'm not interested in copying:
https://arstechnica.com/civis/viewtopic.php?t=608581
Evidently it's fairly clear from the help output from robocopy, but I looked right over it.
This is an example of using an input text file (one item per line) and a small PowerShell script to read in the list and do something to each item.
In my case I wanted to copy all MP3 files from a UNC network path to a flash drive. Our Bluetooth "compatible" stereo system is being cranky, but presumably still accepts a flash drive with MP3 files for playback.
Text file which resides on the remote share:
PowerShell script run locally:
I'm sure there are much better approaches, but this worked in a pinch. Recording here for future reference.