Make list of markes files...

English support forum

Moderators: Hacker, petermad, Stefan2, white

most
Junior Member
Junior Member
Posts: 18
Joined: 2004-01-28, 10:11 UTC
Location: Stockholm / Sweden

Make list of markes files...

Post by *most »

Help...
Im trying do make a button which makes a list of all marked files,
a playlist.

I use this command, but it says "File not found"
dir %L /b > Playlist.m3u

Im using Windows 2000 Pro, if it makes any diffrence.

/Marcus
User avatar
Lefteous
Power Member
Power Member
Posts: 9537
Joined: 2003-02-09, 01:18 UTC
Location: Germany
Contact:

Post by *Lefteous »

2most

Use the MakeBAT plugin to create playlists.

A commandline way of creating a playlist could be:

Command: cmd /K
Parameters: copy %L PlayList.m3u

Total Commander parameters are allowed in the parameters field only.

A nice way of changing the target filename is the ? parameter.

Command: cmd /C
Parameters: ?copy %L PlayList.m3u

cmd /K commandline window remains open after execution.
cmd /C commandline window will be closed after exection.
Last edited by Lefteous on 2004-02-04, 10:08 UTC, edited 1 time in total.
most
Junior Member
Junior Member
Posts: 18
Joined: 2004-01-28, 10:11 UTC
Location: Stockholm / Sweden

Post by *most »

I have tried MakeBAT, but I couldn't make it work like I wanted.
See http://www.ghisler.ch/board/viewtopic.php?t=3144

I want to select the files and then just press a button...

/M
User avatar
norfie
Power Member
Power Member
Posts: 1194
Joined: 2003-02-18, 14:18 UTC

Post by *norfie »

Last edited by norfie on 2004-09-10, 21:54 UTC, edited 1 time in total.
User avatar
SanskritFritz
Power Member
Power Member
Posts: 3693
Joined: 2003-07-24, 09:25 UTC
Location: Budapest, Hungary

Post by *SanskritFritz »

You can copy the list to the clipboard, with the cm_CopyFullNamesToClip command.
I switched to Linux, bye and thanks for all the fish!
most
Junior Member
Junior Member
Posts: 18
Joined: 2004-01-28, 10:11 UTC
Location: Stockholm / Sweden

Post by *most »

The commandline way worked great! Thanks!
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

You have to load command interpreter first!

cmd.exe /c dir /b > Playlist.m3u

Attention:
Existing Playlist.m3u is overwritten without any warning!

Icfu
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: Make list of markes files...

Post by *Sheepdog »

most wrote:Help...
Im trying do make a button which makes a list of all marked files,
a playlist.

I use this command, but it says "File not found"
dir %L /b > Playlist.m3u

Im using Windows 2000 Pro, if it makes any diffrence.

/Marcus
The intern DOS command are not found by TC. So make a mov.bat what contains

Code: Select all

move %1 %2 %3 %4 %5 %6 %7 %8 %9 
and copy it to your WINDOWS directory.
Then create a button with the command 'mov' and the parameter

Code: Select all

 %f  %PPlaylist.m3u
The double P is no write errror.
If you use %F instead of %f there will be the long names in the playlist (otherwise the DOS name with ~1 etc.).
The use of the move command is necessary because the param %f gives a list of the marked files to the started program. So this button simply moves and renames the *.tmp file that TC creates to the current Path (%P).
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

command: cmd.exe /c move
parameters: %f %PPlaylist.m3u

does exactly the same.

No need for an additional batch file.

Icfu
User avatar
ben hub
Member
Member
Posts: 132
Joined: 2003-02-06, 21:47 UTC
Location: Madagascar

Post by *ben hub »

The right syntax could be :

command: cmd.exe /c move
parameters: %F %pPlaylist.m3u

- %F instead of %f to get long filenames
- %p instead of %P which doesn't work for me if there is a space (or more) in the name of a parent directory.
Benoît
# 4081
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

ben hub wrote:The right syntax could be :

command: cmd.exe /c move
parameters: %F %pPlaylist.m3u

- %F instead of %f to get long filenames
- %p instead of %P which doesn't work for me if there is a space (or more) in the name of a parent directory.
Sorry we've all missed the Quotation mark. So it must be:
command: cmd.exe /c
parameters: %F "%PPlaylist.m3u"

because long filenames (with spaces) have to be enclosed with qoutation marks in DOS mode.

sheepdog
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

command: cmd.exe /c
cmd.exe /c move

:)

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

Hacker wrote: cmd.exe /c move

:)

Roman
thanks, were nearly sleeping :wink:

sheepdog
User avatar
tom*de
Senior Member
Senior Member
Posts: 394
Joined: 2003-02-25, 09:21 UTC

Post by *tom*de »

I'm looking for the opposite way:

I would like to copy all files of a playlist to a drive, i.g. USB-stick.

One idea is, that the playlist-plugin from http://darkone.dzaba.com/english/Download.html this have as an further action?

Any other ideas?
Tom - #81178 - 5 User licence - Klugheit, Gerechtigkeit, Tapferkeit und Mäßigung plus Kooperation.
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Hmm, remove unnecessary lines (in a m3u these would be all the odd lines I think) and prepend the rest with copy and append the target path? This should be fairly easy if your editor supports macros... (eg http://www.lancs.ac.uk/staff/steveb/cpaap/pfe/default.htm )

HTH
Roman
Post Reply