Multi Commander Support Forum

Multi Commander => Support and Feedback => Topic started by: pncdaspropagandas on January 19, 2017, 16:26:02

Title: ${sourcefilepath} problem
Post 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
Title: Re: ${sourcefilepath} problem
Post by: AlanJB on January 19, 2017, 18:20:09
I don't believe there is a MultiTag "sourcefilepath"
Title: Re: ${sourcefilepath} problem
Post by: Mathias (Author) on January 20, 2017, 07:52:35
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) )
Title: Re: ${sourcefilepath} problem
Post by: pncdaspropagandas on January 20, 2017, 11:01:11
I see. My bad. I confused it with focusfilepath

Thank you
Title: Re: ${sourcefilepath} problem
Post by: pncdaspropagandas on January 20, 2017, 11:21:40
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
Title: Re: ${sourcefilepath} problem
Post by: Mathias (Author) on January 20, 2017, 13:21:06
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



Title: Re: ${sourcefilepath} problem
Post by: pncdaspropagandas on January 20, 2017, 16:09:43
Ok, I get it.

Thank you very much. Keep up the excellent work! MC is in my fav program list now!