When we set a toolbar button to run an application, we are able to choose %ActiveSel% and %ActiveSelAsFile%
Now, I have a commandline I need to execute that will run on each of all the selected files individually.
Thus, if I select 5 files,
I want the commandline to be run 5 times, once for each file.
If I am not mistaken, right now, all 5 selected files are sent as a single parameter to the application?
Also, what is the difference between %ActiveSel% and %ActiveSelAsFile% ?
Favourite Toolbar RUN action on selected items
Favourite Toolbar RUN action on selected items
(Windows 10-1909 Professional 64bit)
Re: Favourite Toolbar RUN action on selected items
Parameter list: "SeleCtemItemFullPath1" "SeleCtemItemFullPath2" "SeleCtemItemFullPath3"..."SeleCtemItemFullPathX"%ActiveSel%
The text file will be created (e.g. C:\Users\...\AppData\Local\Temp\FreeCommander6868\83F0.tmp )%ActiveSelAsFile%
SeleCtemItemFullPath1
SeleCtemItemFullPath2
SeleCtemItemFullPath3
...
SeleCtemItemFullPathX
Parameter list: "C:\Users\...\AppData\Local\Temp\FreeCommander6868\83F0.tmp"
Re: Favourite Toolbar RUN action on selected items
So, if I select three files and run a command with %ActiveSel%, I get (correct me if I am wrong):
mycommand Selection1.file Selection2.file Selection3.file
but I don't I don't follow you on the %ActiveSelAsFile% part. I'm not sure what is happening with this. If I use this parameter with notepad, it creates a new text file and puts the file path of the selected object in the new text file. Does that mean that the application tries to create a new file? I am a bit confused.
With regard to my original question, is there a way to select 5 files and have the commandline to be run 5 times, once for each file?
mycommand Selection1.file Selection2.file Selection3.file
but I don't I don't follow you on the %ActiveSelAsFile% part. I'm not sure what is happening with this. If I use this parameter with notepad, it creates a new text file and puts the file path of the selected object in the new text file. Does that mean that the application tries to create a new file? I am a bit confused.
With regard to my original question, is there a way to select 5 files and have the commandline to be run 5 times, once for each file?
(Windows 10-1909 Professional 64bit)
Re: Favourite Toolbar RUN action on selected items
Using this parameter with notepad is not possible - notepad does not supports such parameter.If I use this parameter with notepad
You need some application/script that read the file (from the Parameter) and call something for each line in the file.
Re: Favourite Toolbar RUN action on selected items
What about a feature request to allow FC to handle each selected file running it as a parameter for a separate command? Maybe a separate environmental like, %ActiveSelAsSingle% or something like that?
Sure, it could be scripted with AutoHotkey, but that is a workaround to a nice feature.
Sure, it could be scripted with AutoHotkey, but that is a workaround to a nice feature.
(Windows 10-1909 Professional 64bit)
Who is online
Users browsing this forum: No registered users and 8 guests