(Total Commander) How to open the parent folder of folder/zip/rar if open path?

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
jogw
Posts: 3
Joined: Wed Jan 17, 2018 10:14 am

(Total Commander) How to open the parent folder of folder/zip/rar if open path?

Post by jogw »

I have set "Open path":

Code: Select all

$exec("c:\totalcmd\TOTALCMD64.EXE" /O /T /L="%1") 
It's good.When I "Open path" the file "d:\ht\1.jpg", tc will open "d:\ht\"

but to a folder, TC will open the folder. If zip/rar, TC will open the zip/rar file.

zip file: "d:\ht\2.zip", tc will open "d:\ht\2.zip\" with its packer, not"d:\ht\"
rar file: "d:\ht\3.rar", tc will open "d:\ht\2.rar\" with its packer, not"d:\ht\"
folder: "d:\ht\4\", tc will directly open "d:\ht\4\", not the parent foler "d:\ht\"



How to open the parent folder?

Any answer will help.
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: (Total Commander) How to open the parent folder of folder/zip/rar if open path?

Post by tuska »

I have this command under "Open path":

Code: Select all

$exec("c:\totalcmd\TOTALCMD64.EXE" /o /A /S "%1")
/A When an archive file is passed as path, do not open it, but instead open the directory containing the archive
and set the archive as the active file (place the text cursor on it)

Please see: TC-Help (F1), 4.a. Command line parameters
jogw
Posts: 3
Joined: Wed Jan 17, 2018 10:14 am

Re: (Total Commander) How to open the parent folder of folder/zip/rar if open path?

Post by jogw »

Code: Select all

$exec("c:\totalcmd\TOTALCMD64.EXE" /o /A /S "%1")
it works well. Thanks a lot

but how to open the parent folder of a folder?
tuska
Posts: 1052
Joined: Thu Jul 13, 2017 9:14 am

Re: (Total Commander) How to open the parent folder of folder/zip/rar if open path?

Post by tuska »

Everything Options - Context Menu - Explore Path

Code: Select all

$exec("c:\totalcmd\TOTALCMD64.EXE" /o /S $parent("%1"))
Right-click on the folder - Explore Path.
jogw
Posts: 3
Joined: Wed Jan 17, 2018 10:14 am

Re: (Total Commander) How to open the parent folder of folder/zip/rar if open path?

Post by jogw »

Thanks.Finally I can use tc, replace explorer.
Post Reply