Open many files just with one click

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
panos78
Junior Member
Junior Member
Posts: 22
Joined: 2005-01-07, 17:33 UTC
Location: Thessaloniki

Open many files just with one click

Post by *panos78 »

Hallo,
I have a question.
I have created a button in the button bar with a text editor.
Is it possible to put a parameter so that by clicking the button to open all the files that are selected and not just the file under the cursor?
Thanks for any answer.
:)
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Use lst2multi - https://plugins.ghisler.com/addons/lst2multi.zip
See readme for details.
User avatar
panos78
Junior Member
Junior Member
Posts: 22
Joined: 2005-01-07, 17:33 UTC
Location: Thessaloniki

Post by *panos78 »

Thanks for the quick answer! ;)
This tool looks quite useful.
Although, I was wondering why there isn't such a parameter internally in Total Commander! :?:
:)
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

If your editor supports openening a list of files - there is:

%F creates a temporary file with the selected filenames which is handed to the application.

For other intern placeholders look in the help search for "buttonbar: Dialog box Configuration Change Buttonbar" or if you understand german have a look at the section in the german Wiki.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
panos78
Junior Member
Junior Member
Posts: 22
Joined: 2005-01-07, 17:33 UTC
Location: Thessaloniki

Post by *panos78 »

Well, I don't know if it does support lists of files.
The editor is called Textpad.
If someone knows sth please let me know!
I've tried with the switch %L and %F but it didn't work.
:)
User avatar
gbo
Senior Member
Senior Member
Posts: 329
Joined: 2005-03-31, 19:58 UTC
Location: Lausanne (Switzerland)

Post by *gbo »

Try using choice editor for that.

http://www.ghisler.ch/board/viewtopic.php?p=44369#44369

to get a link to it

HTH

For more info search the forum with keyword choiceeditor or choice editor
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

chocie editor can not help here.

only editor with tabbed inteface, like EditPlus

It is not very wise to open several notepads each one to open single file. What if you accedently run that command and you have bunch of files selected at the moment...

Switch to better editor.
For instance I have that prog language called CSound which have 2 files, .orc & .sco. I managed to click on whatever one I want and both are opened in EP, orc above sco, orc taking 70%, sco the rest.
Last edited by majkinetor ! on 2006-01-26, 10:39 UTC, edited 2 times in total.
Habemus majkam!
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

No, Notepad does not support Filelist. Therefore you'll need Lst2str.

Command: Path\to\Lst2str.exe
Parameter: /x:Path\to\textpad.exe /l:%L

And you'll have to enable in Textpad configure->Preferences->General: Allow multiple files on commandline.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
gbo
Senior Member
Senior Member
Posts: 329
Joined: 2005-03-31, 19:58 UTC
Location: Lausanne (Switzerland)

Post by *gbo »

panos78 wrote:The editor is called Textpad.
majkinetor ! wrote:choice editor can not help here.
only editor with tabbed inteface, like EditPlus
Textpad support tabbed interface and choice editor can help here. However solution of Sheepdog is probably more appropriate in this case. But I still recommend to have a look at choice editor because it is very versatile.
Gil
Licence #17346

90% of coding is debugging. The other 10% is writing bugs.
User avatar
panos78
Junior Member
Junior Member
Posts: 22
Joined: 2005-01-07, 17:33 UTC
Location: Thessaloniki

Post by *panos78 »

Well, I found the way with Textpad.
I had to combine the switch of Textpad and Total Commander.
For whoever is interested the parameter is:
@%L
and you have the files you have sellected opened with the program.
:)
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

panos78 wrote:For whoever is interested the parameter is:
@%L
Great. Didn't know that. It works fine here. Thanks.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
panos78
Junior Member
Junior Member
Posts: 22
Joined: 2005-01-07, 17:33 UTC
Location: Thessaloniki

Post by *panos78 »

Anytime!
;)
onikage
Junior Member
Junior Member
Posts: 11
Joined: 2003-12-11, 08:34 UTC
Location: Czech Rep.

Post by *onikage »

hi, i'm trying to solve a similar problem - use a toolbar button to add files to a winamp playlist.

i found this little cmd utility called CLAmp.exe which i used like this:
command: "C:\Program Files\Winamp\CLAmp.exe" /PLADD

parameters: %N

this puts the file under the cursor to the winamp playlist (thanks to the CLAmp's /PLADD parameter), which is great.
but i am not able to add multiple selected files.
- CLAmp doesn't support the list files. not even the trick with @%L.

it seems odd, that tcmd does not provide some %NN parameter, that would use all selected files as an argument. or does it?
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Use lst2str or ChoiceEditor. Forum search will help you to locate them.

Edit: Ah crap, these utilities are already mentioned in this thread, why do you ask ANYWAY?

Icfu
This account is for sale
onikage
Junior Member
Junior Member
Posts: 11
Joined: 2003-12-11, 08:34 UTC
Location: Czech Rep.

Post by *onikage »

icfu: for i'm a slack arse and wanted to make sure there isn't an easier way.

however, even with lst2str i encounter problems. i don't quite understand why, but there's a severe limit to the input size. by default, i only manage to add some three or four songs to the playlist.
i tried to up this limit with /C:xxxx, but this only made the winamp crash.

command: d:\lst2str /X:"c:\program files\winamp\winamp.exe"
parameter: /L:%L /S:"/ADD" [/C:4096] /W:m /E
Post Reply