now that my first question (inline filename search) was answered so quickly, I'll try with the second issue that I've been unable to resolve, so far.
It might sound stupid, but I just have not managed to find out:
How can I open multiple files with TC?
If I mark files and hit enter, only the currently active file will open, but not marked files, as I would expect (this would also resemble windows explorer operation).
Now, I have already installed choice editor from (can't post the internet link as I'm too new to the forum), as I read in another thread, but this also would not help.
Thank you very much,
2) Use utilities list2str and listmulti (search through the forum). These utilities load all selected files to the specified program.
Some application can accept the list passed by %S parameter, others work better with list2str, some others with listmulti. You should experiment.
ListMulti can be downloaded here (page in Russian).
Just try %S. It would solve 70% of your problems.
Code: Select all
TOTALCMD#BAR#DATA D:\Utils\Office\OFFICE11\WINWORD.EXE %P%S D:\Utils\Office\OFFICE11\WINWORD.EXE WINWORD D:\Utils\Office\OFFICE11\ -1
2) Press Ctrl+C (or Ctrl+Ins, or right mouse button -> Copy;
3) Find an empty space on any button bar of Total Commander;
4) Press right mouse button -> Paste;
5) You will see a new button. Most probably it would do nothing - do not press it now!
6) Mouse over this button, right mouse -> "Change...";
5) Edit D:\Utils\Office\OFFICE11\WINWORD.EXE to suit the real path to your Winword (I hope you have it installed);
6) Press OK;
7) Select some *.doc files on any Total Commander panel and press this button;
8 ) Enjoy.
thank you very much for your effort. And: Yes, it does work
The only thing is: This way, I would have to create a new button for each program / filetype I'd like to open multiple files with... Excel, Word, text, csv, powerpoint, etc. etc....
So, it is quite tedious and not a generalized solution...
Any other hint from anybody?
There are a plethora of ways to go about such a task, and you obviously haven't even attempted to look at the very robust help file or any of the detailed documentation that has accumulated on the boards over the years.
:: Overview: Launched via a TotalCommander Button:
:: --> Opens selected file by Windows default programs (uses START).
:: Command: cmd /c MultiFileOpenEXT.cmd
:: Parameters: %S
Code: Select all
@ECHO OFF SETLOCAL CLS :: REM Cursor is on [..] IF "%~1"=="" GOTO:EOF :_LOOP SET isDir="%~a1" SET isDir=%isDir:~1,1% :: NOT A Directory, Open File IF NOT "%isDir%"=="d" ( START "" "%~1" ) IF NOT "%~2"=="" ( SHIFT GOTO:_LOOP )
It is. I wondered, too, why I could not select a handful of, say .cpp files, press F4 and they would ALL open up within my favourite programmers editor. All the suggestions here are good, but I would love to have it work with F4, since that is using the file associations feature.cool.bambus wrote:Thanks for your reply, Vochomurka.
Well, experimenting is not quite what I had in mind. I was looking for a quick feature to achieve this multi-opening easily.
Isn't this issue common to many people out there?
For example, Flo's Notepad2 would require (on a button for example)
Notice the "+".Command: C:\Program Files\Editors\Notepad2.exe +
Do you by any chance know how to make the command line parameters %P%S work when setting up the editor for F4 (Configuration-Options-Edit/View).
There is a command line for invoking the editor, mine says "C:\Program Files\UltraEdit\uedit32.exe" (without the quotes)