Get filename and path
#1
Hello

I like to enhance the context menu to execute a script. As parameter i need the full path and filename of the selected file.

In the context menu i added an item and in the onclick event i call my phyton script.

If i use $INFO[ListItem.Label] as parameter i get the name of the file only. Is it possible to get the path of the selected file too?

Code:
<onclick>RunScript(script.movefile,?????????)</onclick>
Reply
#2
try $INFO[ListItem.FileNameAndPath]
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Thank you @ronie it's working fine.
Reply

Logout Mark Read Team Forum Stats Members Help
Get filename and path0