open multiple selected files via [Associations]

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
KozakMak
Senior Member
Senior Member
Posts: 370
Joined: 2021-05-24, 12:39 UTC
Location: UA

open multiple selected files via [Associations]

Post by *KozakMak »

Code: Select all

[Associations]
Filter8=>audio
Filter8.icon=%commander_path%\Utils\foobar2000\foobar2000.exe
Filter8_open=""%commander_path%\Utils\foobar2000\foobar2000.exe" "%1""
If i hit Enter on multiple selected files, foobar2000 open only 1 file under cursor
How to make it open every selected files at once?
OS: Win10 | TC: latest x64
joe910
Junior Member
Junior Member
Posts: 37
Joined: 2009-02-23, 03:05 UTC
Location: Peoria, IL USA

Re: open multiple selected files via [Associations]

Post by *joe910 »

For this I use a button - actually two buttons. If you use these buttons you will need to revise the location of foobar2000

This one adds all marked files to current playlist:
-----
TOTALCMD#BAR#DATA
c:\TotalCmd\apps\foobar2000\foobar2000.exe
%P%S
c:\TotalCmd\apps\foobar2000\foobar2000.exe
Foobar|Play marked
c:\TotalCmd\apps\foobar2000\
0
-1
-----
Just copy lines between the ----- and paste to the button bar.

I use this one to add to the current playlist:
-----
TOTALCMD#BAR#DATA
c:\TotalCmd\apps\foobar2000\foobar2000.exe /add
%P%S
%!Cmc:\TotalCmd\apps\foobar2000\foobar2000.exe
Foobar|Add to current playlist
c:\TotalCmd\apps\foobar2000\
0
-1
-----
Just copy lines between the ----- and paste to the button bar.
KozakMak
Senior Member
Senior Member
Posts: 370
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: open multiple selected files via [Associations]

Post by *KozakMak »

2joe910
joe910 wrote: 2023-12-30, 16:05 UTC actually two buttons.
re-read the thread title again
OS: Win10 | TC: latest x64
User avatar
petermad
Power Member
Power Member
Posts: 14809
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: open multiple selected files via [Associations]

Post by *petermad »

2KozakMak

Select several files (same extension).
Right-click on one of the files.
Click on the first item in the context menu: Open (Audio)

If the application allows to run multiple instances, then the selected files should now be opened in individual windows.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: open multiple selected files via [Associations]

Post by *Gral »

2 KozakMak

1. Change

Code: Select all

Filter8_open=""%commander_path%\Utils\foobar2000\foobar2000.exe" "%1""
to

Code: Select all

Filter8_open=""%commander_path%\Utils\foobar2000\foobar2000.exe" "%2""
2. Use context menu "Open (Internal)" command to open all selected files in single instance.
User avatar
rus73
Junior Member
Junior Member
Posts: 29
Joined: 2013-05-30, 08:39 UTC
Location: Russia

Re: open multiple selected files via [Associations]

Post by *rus73 »

2Gral
This does not work, but in general the task is interesting.
KozakMak
Senior Member
Senior Member
Posts: 370
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: open multiple selected files via [Associations]

Post by *KozakMak »

2petermad
well, that's also an option
thx
OS: Win10 | TC: latest x64
User avatar
Gral
Power Member
Power Member
Posts: 1467
Joined: 2005-01-26, 15:12 UTC

Re: open multiple selected files via [Associations]

Post by *Gral »

2 rus73
If it doesn't work for you, you're doing something wrong.
Note: here is a solution for foobar2000.
It works for other programs only if it support many files in single instance and many file names in command line.
Post Reply