load .m3u and a tab for copy operations ,can I ?

English support forum

Moderators: white, Hacker, petermad, Stefan2

giulia
Senior Member
Senior Member
Posts: 317
Joined: 2013-09-14, 05:33 UTC
Location: Europe

load .m3u and a tab for copy operations ,can I ?

Post by *giulia »

Hi

I have read on the forum before posting viewtopic.php?t=51564

but i haven't found any tips to do it

is there a way to load a .m3u playlist on a tab to copy to a destination ?

and i want to copy all the folders ,subfoler and files?

In short i would like export a muscibee or foobar playlist and load into total commander and perform copy operation
thanks
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: load .m3u and a tab for copy operations ,can I ?

Post by *Horst.Epp »

You can use the TC command LOADLIST to get the list into one TC window.
From there, you can handle the entries with the normal file functions.
Here is a button with this command (adapt the Icon path)

Code: Select all

TOTALCMD#BAR#DATA
LOADLIST
%P%N
C:\Tools\Wincmd\WCMICONS48.DLL,31
LoadList from file under cursor

0
-1
Select a .m3u file and hit the button.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1382a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
giulia
Senior Member
Senior Member
Posts: 317
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: load .m3u and a tab for copy operations ,can I ?

Post by *giulia »

Horst.Epp wrote: 2023-08-27, 15:50 UTC You can use the TC command LOADLIST to get the list into one TC window.
From there, you can handle the entries with the normal file functions.
Here is a button with this command (adapt the Icon path)

Code: Select all

TOTALCMD#BAR#DATA
LOADLIST
%P%N
C:\Tools\Wincmd\WCMICONS48.DLL,31
LoadList from file under cursor

0
-1
Select a .m3u file and hit the button.
hi
good , but does copy only files and Not folders structure
thanks
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: load .m3u and a tab for copy operations ,can I ?

Post by *Horst.Epp »

You can edit the .m3u file and remove all after the last \ from each entry.
If you make a LOADLIST from this, you have the dirs as list in TC.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1382a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
giulia
Senior Member
Senior Member
Posts: 317
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: load .m3u and a tab for copy operations ,can I ?

Post by *giulia »

Horst.Epp wrote: 2023-08-27, 16:06 UTC You can edit the .m3u file and remove all after the last \ from each entry.
If you make a LOADLIST from this, you have the dirs as list in TC.
hi
for example

Code: Select all

A:\music\1966\The Who Sings My Generation\1. Out In The Street.mp3
which \ should I remove ?
but if the list is huge?
thanks
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: load .m3u and a tab for copy operations ,can I ?

Post by *Horst.Epp »

Of course, the file name.
1. Out In The Street.mp3
Use an Editor which supports the necessary Regex.
For me PSPad or Akelpad work with this
[^\\]*$
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1382a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
giulia
Senior Member
Senior Member
Posts: 317
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: load .m3u and a tab for copy operations ,can I ?

Post by *giulia »

Horst.Epp wrote: 2023-08-28, 07:14 UTC Of course, the file name.
1. Out In The Street.mp3
Use an Editor which supports the necessary Regex.
For me PSPad or Akelpad work with this
[^\\]*$
hi
can i do with notepad++ ?
thanks
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: load .m3u and a tab for copy operations ,can I ?

Post by *Horst.Epp »

Yes
Notepad++ also supports this regex syntax :)
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1382a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
giulia
Senior Member
Senior Member
Posts: 317
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: load .m3u and a tab for copy operations ,can I ?

Post by *giulia »

Horst.Epp wrote: 2023-08-28, 16:16 UTC Yes
Notepad++ also supports this regex syntax :)
hi
what feature should i use in notepad++ , replace?
could you post a screenshot?
thanks
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: load .m3u and a tab for copy operations ,can I ?

Post by *Horst.Epp »

Put the cursor on the beginning of your file.
Menu: Search / Replace
Enable Regular expression under Search Mode
Find what: [^\\]*$
Press Replace All
Press Close
Save your file
Done
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1382a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
giulia
Senior Member
Senior Member
Posts: 317
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: load .m3u and a tab for copy operations ,can I ?

Post by *giulia »

Horst.Epp wrote: 2023-08-29, 16:37 UTC Put the cursor on the beginning of your file.
Menu: Search / Replace
Enable Regular expression under Search Mode
Find what: [^\\]*$
Press Replace All
Press Close
Save your file
Done
hi
do you think a compontent /plugins could handle such list/listes ?
thanks Horst
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: load .m3u and a tab for copy operations ,can I ?

Post by *Horst.Epp »

Totalcmd.net has a packer plugin for it.
I don't use it and it doesn't contain any readme.
Just try it.
https://totalcmd.net/plugring/M3U.html
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1382a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
giulia
Senior Member
Senior Member
Posts: 317
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: load .m3u and a tab for copy operations ,can I ?

Post by *giulia »

Horst.Epp wrote: 2023-08-30, 10:26 UTC Totalcmd.net has a packer plugin for it.
I don't use it and it doesn't contain any readme.
Just try it.
https://totalcmd.net/plugring/M3U.html
Hi
i have tried the plugins ,but it doesn't load the playlist
according here viewtopic.php?t=79813 seems more to generate playlist and not to load it
thanks
love Total Commander , best file manager ever made
giulia
Senior Member
Senior Member
Posts: 317
Joined: 2013-09-14, 05:33 UTC
Location: Europe

Re: load .m3u and a tab for copy operations ,can I ?

Post by *giulia »

Horst.Epp wrote: 2023-08-29, 16:37 UTC Put the cursor on the beginning of your file.
Menu: Search / Replace
Enable Regular expression under Search Mode
Find what: [^\\]*$
Press Replace All
Press Close
Save your file
Done
Hi Horst
I have done, may I ask a question about ?

Code: Select all

A:\music\1966\The Who Sings My Generation\1. Out In The Street.mp3
if i want to replace and obtain for example

Code: Select all

A:\music\1966\

or even better

Code: Select all

A:\music\

what code should i use?
i have tried to edit [^\\]*$ adding and removing \\ but nothing
thanks
love Total Commander , best file manager ever made
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6532
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: load .m3u and a tab for copy operations ,can I ?

Post by *Horst.Epp »

I can't tell you how to get this result with an easy Regex.
Try to use one of the Regex learning websites like
https://www.regular-expressions.info/index.html
Windows 11 Home x64 Version 23H2 (OS Build 22631.3737)
TC 11.03 x64 / x86
Everything 1.5.0.1382a (x64), Everything Toolbar 1.3.3, Listary Pro 6.3.0.78
QAP 11.6.3.3 x64
Post Reply