Multi Commander Support Forum
Multi Commander => Support and Feedback => Topic started by: pncdaspropagandas on January 19, 2017, 16:26:02
-
Hi,
I'm having trouble with the ${sourcefilepath} multitag.
I created a User Defined Command as a Batch Script with:
echo sourcepath = "${sourcepath}"
echo sourcefilepath = "${sourcefilepath}"
pause
Then I select any or multiple files on C:\
When I run the scrit I get:
sourcepath = ""C:\""
sourcefilepath = ""
So is this a bug or did I do something wrong?
Thanks
-
I don't believe there is a MultiTag "sourcefilepath"
-
Correct. there is no "sourcefilepath"
http://multicommander.com/docs/multitags
I think maybe you want ${sourcefocuspath} ?? (Give you the path to the item (file/folder) in focus in the source panel (active panel) )
-
I see. My bad. I confused it with focusfilepath
Thank you
-
But then I edit a Quick Launch Button and set
Program Path = C:\Program Files (x86)\Notepad++\notepad++.exe
Program Parameters = ${sourcefocuspath}
I select a file and click on the Quick Launch Button
Notepadd++ warns me with the message:
C:\${sourcefocuspath} doesn't exist. Create it?
It seems that the MultiTag ${sourcefocuspath} doesn't work on a Quick Launch Button.
On the other hand, on another Quick Launch Button, I use the MultiTag ${sourcepath} and it works fine.
Thanks
-
But then I edit a Quick Launch Button and set
Program Path = C:\Program Files (x86)\Notepad++\notepad++.exe
Program Parameters = ${sourcefocuspath}
I select a file and click on the Quick Launch Button
Notepadd++ warns me with the message:
C:\${sourcefocuspath} doesn't exist. Create it?
It seems that the MultiTag ${sourcefocuspath} doesn't work on a Quick Launch Button.
On the other hand, on another Quick Launch Button, I use the MultiTag ${sourcepath} and it works fine.
Thanks
MultiTags are only for script. not for the QuickLaunchBar.. It has its own tags that are similar to MultiTags but it does not support as much since because of reasons. But you can call a script command from the quick launch bar.
BUT if you want to change the default editor to notepad++ then you really should change that in Menu > Configuration > FileType Setup and change default editor.
Then when you press the "edit" button/hotkey that editor will be used
-
Ok, I get it.
Thank you very much. Keep up the excellent work! MC is in my fav program list now!