Page 1 of 1

Button bar: path to currently opened archive

Posted: 2018-07-30, 06:37 UTC
by sergio12
Is it possible to get the path to the currently opened archive being inside an archive?
It looks like "reverse" %Z parameter, i.e. for current source path "Disk:\path\to\archive.zip\some\sub\dir\*.*" get the path "Disk:\path\to\"
Using %P, i get "This function cannot be used with packed files".

Re: Button bar: path to currently opened archive

Posted: 2018-07-30, 09:46 UTC
by ghisler(Author)
No, currently not. I want to prevent users from invoking a command with a wrong directory.

Re: Button bar: path to currently opened archive

Posted: 2018-07-31, 14:38 UTC
by sergio12
I thought this is not wrong directory, but just a path to archive itself...
Anyway, thank you for answer.

Re: Button bar: path to currently opened archive

Posted: 2018-07-31, 16:30 UTC
by petermad
2sergio12
What is it you want to do with the path? - maybe there are a solution to your problem nonetheless.

Re: Button bar: path to currently opened archive

Posted: 2018-08-01, 09:35 UTC
by sergio12
petermad,
I need to run external program with TC's source path as a parameter, regardless of open archives in the panels.
Yes, it is possible to do that using something like "cm_FocusTrg,cm_OpenDesktop,em_Prog,cm_GotoPreviousDir,cm_FocusTrg" or even external script.
But this is not good-looking solution, I think.