Button bar: path to currently opened archive

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
sergio12
Junior Member
Junior Member
Posts: 3
Joined: 2018-07-26, 14:31 UTC
Location: Russian Federation

Button bar: path to currently opened archive

Post 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".
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48077
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Button bar: path to currently opened archive

Post by *ghisler(Author) »

No, currently not. I want to prevent users from invoking a command with a wrong directory.
Author of Total Commander
https://www.ghisler.com
sergio12
Junior Member
Junior Member
Posts: 3
Joined: 2018-07-26, 14:31 UTC
Location: Russian Federation

Re: Button bar: path to currently opened archive

Post by *sergio12 »

I thought this is not wrong directory, but just a path to archive itself...
Anyway, thank you for answer.
User avatar
petermad
Power Member
Power Member
Posts: 14793
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Button bar: path to currently opened archive

Post by *petermad »

2sergio12
What is it you want to do with the path? - maybe there are a solution to your problem nonetheless.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
sergio12
Junior Member
Junior Member
Posts: 3
Joined: 2018-07-26, 14:31 UTC
Location: Russian Federation

Re: Button bar: path to currently opened archive

Post 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.
Post Reply