News:

MultiCommander v16.6 is released!

Main Menu

${sourcefilepath} problem

Started by pncdaspropagandas, January 19, 2017, 16:26:02

Previous topic - Next topic

pncdaspropagandas

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

AlanJB

I don't believe there is a MultiTag "sourcefilepath"

Mathias (Author)

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) )

pncdaspropagandas

I see. My bad. I confused it with focusfilepath

Thank you

pncdaspropagandas

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

Mathias (Author)

Quote from: 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

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




pncdaspropagandas

Ok, I get it.

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