Total Commander (obsolete) tip: How to open a zip file with a non-zip file extension like JAR, XPI or EXE

Total Commander (TC) has a feature called “packing”, which is actually built-in support for zip files that allows you to easily double-click a zip file and open it as if it was a folder – navigate zipped folders hierarchy, copy/move files and folders from it or open/edit/view files in it.

This is very handy, but often, I have to deal with zip files with other non-zip extensions, where double-clicking them opens them with another application, but I want to inspect their zipped content within Total Commander as if they had a zip extension. Three common samples for such files are XPI files used to package and install Firefox extensions, JAR files and EXE files which are actually self-extracting zip files. I’m currently working on two internal install frameworks. One of them generates a Setup.jar install file, and the other one, one run on Windows, generates a self-extracting exe using WinRAR.

In these three samples, when I want to view the zipped file content, I used to be forced to either open the file with 7-zip, or renaming the file to have a zip extension and open it in Total Commander.

Recently, I found out that there is a better way to handle this in Total Commander 7.

A few weeks ago I discovered that if I try to change the current directory of a Total Commander panel to a file and not a directory, Total Commander changes the directory to the directory of that file, and then selects the file, which is a handy feature of its own. However, if this file is a zip file, then Total Commander will not select the file, but instead, it will open it as a zip file. The good news is that this is true for all zip files, even those with other extensions like EXE, JAR or XPI.

Note that this only works with Total Commander 7 and not in earlier versions. Also note that this magic only occurs if you change the directory of the panel to the full absolute path of the zip file. Using a partial relative path won’t work, and Total Commander will not change the directory.

On my machine, where Total Commander is configured to have Ctrl-G start editing the panel path and Ctrl-P copies the full path of the selected file(s), I can easily select a zip file and type Ctrl-P, Ctrl-G, Enter to browse the file zipped content, but on other machine that doesn’t have this keyboard remapping, I’m using the following sequence:

  1. <Right Arrow> – to show the TC command line in case it is hidden (it is hidden on my machine)
  2. type cd
  3. <Space>
  4. <Ctrl-Shift-Enter> – to copy the full path of the selected file to the command line. This is a standard TC keyboard shortcut.
  5. <Enter> – to invoke the magic

I added “(obsolete)” to this post subject because after writing all of this, I went over the post draft to add links to the relevant words, and when I looked for a link that explains Total Commander support for zip files, I found these two FAQs about how to open JAR files and how to open self-extracting archives and realized that TC has a built-in support for handling this problem – using Ctrl-PageDown, so my tricks are pretty much obsolete. However, I thought this still deserves publishing, as it might reveal new features for TC users who read this.


3 Responses to “Total Commander (obsolete) tip: How to open a zip file with a non-zip file extension like JAR, XPI or EXE”

  1. detlef Says:

    Dear Splinter, you made my day – many thanks. Had the same issue with jar file in IBM Sametime environment. Got hotfixes from IBM and had to place class files into a jar file.
    My trick: search for class file within archives. This way I got into the JAR file and could apply the hotfix.
    But Ctrl-Pagedown is really a charme.

    Here’s another trick you may like. Two external USB harddisks are used for backup of data, synchronized and have same content but not amount of data. 1 GB delta. Solution: System Volume Information keeps data form restore points. How to get rid:
    1. DOSBox cmd “takeown /r /f “System Volume Information”, answer “Y” if you got asked.
    Now you can investigate content and size – stunning. Explorer or TotalCommander must show hidden system files of course.
    2. Create a folder in root like “\delete-me”
    3. Move “System Volume Information” to this folder
    4. Delete “\delete-me”
    Control Panel – system – Rstore point delete action won’t bring this result and refuse in result deletion. But with this procedure you can get rid of obsolete data. Source of this knowledge: – User Infrasignal.
    Found this info prior to yours. I feel lucky.
    Will now look to your page. But this THANK YOU ! was a must to say.

    Greetz from germany – Detlef

  2. watch more Says:

    Valuable information. Lucky me I found your web site by chance, and I’m shocked why this accident didn’t came about
    in advance! I bookmarked it.

  3. tip Says:

    Other possibilities:
    – press ctrl+’page down’ when target file is selected
    – associate file extension with packer in Configuration, Options, Packer

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: