![]() REM replace the path with the path as adb uses it. (y/n)įor /F "tokens=*" %%A in (playlist.txt) do ( Set /p testrun=Is this a testrun? Testrun recommended. REM Make sure your destination folder at pathname already exists REM REPLACETEXT: Where adb shell says the file is REM SEARCHTEXT: Where the file containing all the paths says the file is REM pathname: Where should all the files be saved to REM This can be autogenerated for a playlist by REM it should contain all file paths on the phone REM playlist.txt: place a text file in the same dir as this file ![]() REM make sure everything is set correctly It wil run for real this time, copying the specified files into your destination folder. Run it again, this time type anything except y. It does not check the source path though, that is your own job. it will also check if the destination folder does exist: if it doesn't the writing will turn red. Press y and then Enter to let it display what source paths it will use. Store the batch file in the same directory as playlist.txt and run it. If you do not need my option, make sure to replace something with itself.Įdit the batch file and set pathname to your desired destination folder. If your path is different than the one adb needs, replace it in the textfile or make use of the SEARCHTEXT REPLACETEXT option in the batch file. So check your path by using adb shell and your usual means of navigating: cd and ls In My case, it worked for the external sdcard. storage/emulated/ existed through adb but the dir 0 did not. In my case, adb used /mnt/sdcard while the file contained all paths to the internal sdcard as /storage/emulated/0. If you automatically generated your file, the path may be not the same as adb uses. If your phone is connected, adb devices will list it up. You may need to enable USB debugging on your phone or unlock the lockscreen and allow access. storage/emulated/0/mp3/the prodigy - 3 kilos.m4aĬall that file playlist.txt and store it on your PC next to my batch file.Ĭonnect your android phone through USB with your windows computer and open up a CMD. storage/emulated/0/books/GRETE_PAIA_San_Sebastiano.mp3 storage/extSdCard/Instalok/Media_t8p7f3.mp3 storage/extSdCard/Instalok/Media_t6p5f3.mp3 ![]() storage/extSdCard/Instalok/Media_t4p3f3.mp3 Make sure that each file path is on a new line. But you could also create that file by other means e.g. This app does so automatically and would also allow to import playlists (without the music files). Create a file with the paths of the music For this solution, you need adb installed.ġ.
0 Comments
Leave a Reply. |