Author Topic: Custom commands and archives  (Read 5363 times)

vsudakou

  • Newbie
  • *
  • Posts: 7
    • View Profile
Custom commands and archives
« on: April 23, 2017, 17:26:13 »
Hi all,

MultiCommander allows to open archives directly in panel (using virtual filesystem plugins).
When you go into archive and open some file there - MultiCommander automatically unpacks that, and associated program is able to process that.
But when I try to perform my User Defined command on any file inside of archive - MultiCommander doesn't unpack that file automatically.

Below is example of my External command which I try to perform on any file inside of ZIP-archive. MultiCommander doesn't unpack "${focusfilepath}" when I run it.
Code: [Select]
"C:\Program Files (x86)\Microsoft VS Code\Code.exe" "${focusfilepath}"
Thank you in advance for any suggestions.

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4271
    • View Profile
    • Multi Commander
Re: Custom commands and archives
« Reply #1 on: April 26, 2017, 08:14:11 »
That is not really possible.
${focusfilepath} is just a reference to the path of the file. Like when you copy the path of a fie to the clipboard and then you paste that somewhere.
The scrript does not know what you want to do with that path. If you want an external program to use it you need to copy the file yourself first.
Or try to use filetype setup, So that you tell MC what to do with that filetype. then it will unpack the file if needed.