I've got a script that accepts a path as an external argument and I would like to attach it to Total Commander.
So I need a script/plugin for TC that would pass a path of opened directory as an argument and run a Python script which is located for example at C:/Temp
How can I achieve this?
Best Regards, Marek
Run python script at TC
Moderators: Hacker, petermad, Stefan2, white
I don't think you need a plugin for that. There are various methods you could use to get the current path.
You can type in the command line and press CTRL+P to copy current path to command line. So you can type
python c:\temp\script.py
and then press CTRL+P, or press CTRL+P and insert the script before it.
Easier would be to create a button in the button bar and use %p as a parameter (right click on the button bar, change, press F1 for more info)
Or you can create a new entry in the Start menu and again use %p and also assign a key board shortcut to it.
You can type in the command line and press CTRL+P to copy current path to command line. So you can type
python c:\temp\script.py
and then press CTRL+P, or press CTRL+P and insert the script before it.
Easier would be to create a button in the button bar and use %p as a parameter (right click on the button bar, change, press F1 for more info)
Or you can create a new entry in the Start menu and again use %p and also assign a key board shortcut to it.