3

I have some files on my system (extension .sublime-package). These files are nothing but a .zip with a different file extension. I can currently browse them by renaming the file, then double clicking to open with the explorer zip viewer.

Is there something I can enter in the "open with" dialog to persuade windows to open the original files with its default zip viewer?

Eric
  • 446

1 Answers1

2

The terms to look for are

  • associate
  • CompressedFolder

An equivalent question was asked in Can you configure Windows to open JAR files like ZIP files without a 3rd party tool?, using this command for .jar files:

assoc .jar=CompressedFolder

from the command-line, using elevated privileges since it updates the registry. You could use the same method for associating the .sublime-package file type with CompressedFolder:

assoc .sublime-package=CompressedFolder

Microsoft documents the assoc program in several places, e.g., How to Use the Assoc Command to Change File Associations . It has been available since Windows 2000, at least.

In Associate .zip extension to which Windows 7 program?, the answer points to a page containing registry fixes (not what you need), but providing an illustration of what is stored in the registry. For zip-files, it updates several keys in HKEY_CLASSES_ROOT\CompressedFolder.