Loading multiple folders on launch

I use mp3tag.exe /fp: to launch loading a single folder but is there a way of loading multiple, e.g. an commandline equivalent of menu command Add directory? Thanks.

I've read somewhere on the forum a proposal like this (not tested):
mp3tag.exe /fp:folder1
mp3tag.exe /fp:folder2
mp3tag.exe /fp:folder3

DD.20090103.0840.CET

Thanks, but that gives only what's expected - one folder at a time.

BTW, I find for even that to work one must include the folder path e.g. mp3tag.exe /fp:c:\parentfolder\folder1.

In general I use "c:\program files\mp3tag\mp3tag.exe" /fp:"[folderpath]".

Any other suggestions for multiple folders? I see that ther4e is a solution for the Explorer right-click, but I cannot find the mp3tag command in Explorer File Types.

Just an addendum to my postage above.
I've read this:
Opening multiple files from batch/command-line

DD.20090103.1412.CET

I'm baffled as to how that can work... but it is for files not folders.

I've worked around my need by making a playlist, but would still like to hear if there is a direct solution.

And if anyone cares to write complete documentation for the commandline switches, I'd be very pleased! I hereby pledge 20e.

I would still really like to hear a way of doing this.

I have this m3u file:

O:\MUSIK\ROCK\T\The Beatles\2000 - 1\02_FromMeToYou_TheBeatles_1_2000.mp3
O:\MUSIK\ROCK\T\The Beatles\2003 - Let It Be Naked\CD1\01_GetBack_TheBeatles_LIBNCD1_2003.mp3
O:\MUSIK\ROCK\T\Thin Lizzy\1978 - Live And Dangerous

and this cmd file:

@START "" "%ProgramFiles%\Mp3tag\Mp3tag.exe" "O:\TEST\Mp3tag.batch.m3u"

and got these files listed in Mp3tag:

02_FromMeToYou_TheBeatles_1_2000.mp3
01_GetBack_TheBeatles_LIBNCD1_2003.mp3
01_Jailbreak_ThinLizzy_LAD_1978.mp3
02_Emerald_ThinLizzy_LAD_1978.mp3
03_Southbound_ThinLizzy_LAD_1978.mp3
04_Rosalie_ThinLizzy_LAD_1978.mp3
05_DancingInTheMoonlight_ThinLizzy_LAD_1978.mp3
06_Massacre_ThinLizzy_LAD_1978.mp3
07_StillInLoveWithYou_ThinLizzy_LAD_1978.mp3
08_JohnnyTheFoxMeetsJimmyTheWeed_ThinLizzy_LAD_1978.mp3
09_CowboySong_ThinLizzy_LAD_1978.mp3
10_TheBoysAreBackInTown_ThinLizzy_LAD_1978.mp3
11_DontBelieveAWord_ThinLizzy_LAD_1978.mp3
12_Warriors_ThinLizzy_LAD_1978.mp3
13_AreYouReady_ThinLizzy_LAD_1978.mp3
14_Suicide_ThinLizzy_LAD_1978.mp3
15_ShaLaLa_ThinLizzy_LAD_1978.mp3
16_BabyDrivesMeCrazy_ThinLizzy_LAD_1978.mp3
17_TheRocker_ThinLizzy_LAD_1978.mp3

This works fine.

DD.20090403.1006.CEST

I have this m3u file:

Thanks for the suggestion - I have a similar one. As I said:

but

As an example ... this cmd file starts one instance of Mp3tag displaying all the files from the two folders:

@START "" "%ProgramFiles%\Mp3tag\Mp3tag.exe" /fp:"O:\MUSIK\ROCK\K\Killswitch Engage\2005 - The End Of Heartache\"
@START "" "%ProgramFiles%\Mp3tag\Mp3tag.exe" /fp:"O:\MUSIK\ROCK\K\Kim Wilde\1995 - Now & Forever\"

As another example ... this cmd file does the same by looping through all the parameters from the given commandline:

@For %%p in (%*) DO @START "" "%ProgramFiles%\Mp3tag\Mp3tag.exe" /fp:"%%~p"

... typing this on the commandline:

Mp3tag.batch.cmd "O:\MUSIK\ROCK\K\Killswitch Engage\2005 - The End Of Heartache\" "O:\MUSIK\ROCK\K\Kim Wilde\1995 - Now & Forever\"

DD.20090403.2337.CEST

QUOTE (DetlevD @ Apr 3 2009, 22:14) <{POST_SNAPBACK}>
As an example ... this cmd file starts one instance of Mp3tag displaying all the files from the two folders:
@START "" "%ProgramFiles%\Mp3tag\Mp3tag.exe" /fp:"O:\MUSIK\ROCK\K\Killswitch Engage\2005 - The End Of Heartache\"
@START "" "%ProgramFiles%\Mp3tag\Mp3tag.exe" /fp:"O:\MUSIK\ROCK\K\Kim Wilde\1995 - Now & Forever\"<!--QuoteEnd--></div><!--QuoteEEnd-->Thanks, but it is worth noting that relies on the first command still executing when the second starts. If it has finished (e.g. try the two at the DOS prompt), then the second wipes the Mp3tag tracklist.

I would welcome Mp3tag supporting a reliable method e.g. /cd and /ad as per the File menu.

This is not true. You should try the example script as intended.

Mp3tag is not a simple batch executable file, but a windows application. Once the Mp3tag application is invoked it will get terminated only by user intervention pressing Alt-F4 or clicking the window close button or choosing close command from the file menu. (There is no commandline parameter known, that can kill the running application from a DOS commandline.)

Therefore you can use a batch file, as I did it in the examples in the previous posts, for multiple invocations of "Mp3tag /fp" commands to get all the wanted files and folders into one listview.

As you easily can see the Mp3tag commandline parameter /fp supports reading in a single file and reading a complete folder too.

DD.20090707.0940.CEST

If it has finished (e.g. try the two at the DOS prompt),
then the second wipes the Mp3tag tracklist. ...
This is not true.

Did you actually try at the DOS prompt, Detlev?

I will try again.
Is there any difference between directly executing Mp3tag.exe on commandline against executing from within the batch process?

I got it both together in Mp3tag when coding this commandline:

"%ProgramFiles%\Mp3tag\Mp3tag.exe" /fp:"O:\MUSIK\ROCK\K\Killswitch Engage\2005 - The End Of Heartache\"&"%ProgramFiles%\Mp3tag\Mp3tag.exe" /fp:"O:\MUSIK\ROCK\K\Kim Wilde\1995 - Now & Forever\"

I am unsure.
It looks a bit like if Mp3tag does not know how to detect itself's running instance.

Despite all the tricks it seems a good way to have some handy native commandline parameters.

Mp3tag.exe /fp:""
Starts Mp3tag (if it is not already running) in the specified directory using the directory as working directory
starting with a fresh filelist as defined

  • maybe with modifier: This folder only / Including subfolders
  • maybe with path and file wildcards

Mp3tag.exe /fn:""
Starts Mp3tag (if it is not already running) with the specified audio file using the directory of the file as working directory
starting with a fresh filelist as defined

  • maybe with file wildcards

Mp3tag.exe /add /fp:""
Starts Mp3tag (if it is not already running) in the specified directory using the directory as working directory adding new entries to the existing filelist.

  • maybe with modifier: This folder only / Including subfolders
  • maybe with path and file wildcards

Mp3tag.exe /add /fn:""
Starts Mp3tag (if it is not already running) with the specified audio file using the directory of the file as working directory adding new entries to the existing filelist.

  • maybe with file wildcards

Mp3tag.exe /del /fp:""
Mp3tag.exe /del /fn:""
Uses running instance of Mp3tag and deletes/removes the defined entries.

  • maybe with path and file wildcards
  • maybe with file wildcards

... hmm, m3u files should be respected too.

DD.20090707.1320.CEST

Is there any difference between directly executing Mp3tag.exe
on commandline against executing from within the batch process?

Yes. When executing on the command line, the small delay between commands can cause the second one to wipe the files of the first.

I got it both together in Mp3tag when coding this commandline:

Nice trick. That works fine here, and not just for folder - for track files and m3u files too:

Despite all the tricks it seems a good way to have some handy native commandline parameters.

Agreed, but I do not see how your suggested change to the behaviour of /fp would accomodate the existing Explorer shell integration requirement. Hence I would prefer my suggestion of addtional switches.

... hmm, m3u files should be respected too.

Agreed.

More then 7 years later:

Any chance that we ever see this in a future version?

BTW:
VLC has an impressive list of commandline options including:
--playlist-enqueue, --no-playlist-enqueue
Enqueue items to playlist when in one instance mode
(default disabled)
When using the one instance only option, enqueue items to playlist and keep playing current item.
(default disabled)