Windows Explorer Associations

Find Tips and tricks on how to better use the Zeus IDE. Feel free to post your own tips but please do not post bug reports, feature requests or questions here.
Post Reply
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Windows Explorer Associations

Post by jussij »

Open Windows Explorer Documents in Zeus
To open a particular document from inside Windows Explorer using Zeus, import the following registry details into the registry using RegEdit.

IMPORTANT NOTE: The <User ID> references in the code needs to be changed to your user id and you need to make sure Zeus has been installed in that folder location.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ZeusDocument]
@="Text Document"

[HKEY_CLASSES_ROOT\ZeusDocument\DefaultIcon]
@="%SystemRoot%\\SysWow64\\shell32.dll,-152"

[HKEY_CLASSES_ROOT\ZeusDocument\shell]

[HKEY_CLASSES_ROOT\ZeusDocument\shell\open]

[HKEY_CLASSES_ROOT\ZeusDocument\shell\open\command]
@="\"C:\\Users\\<User ID>\\AppData\\Local\\Programs\\Zeus\\z.exe\" -s \"%1\""
HINT: In the shell\open\command shown above the -s option will mean the file is opened in a second (i.e. a new) instance of Zeus. To have the file open in the currently running Zeus instance just remove that option.

Next import the registry details shown below into the registry, changing the <extension> marker to the file extension to be opened using Zeus.

For example changing that marker to .txt means all text documents will be opened in Zeus.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\<extension>]
"Content Type"="text/plain"
"PerceivedType"="text"
@="ZeusDocument"
This allows you to double click on files with that file extensions and have them open in Zeus.

Open Zeus Workspace in Windows Explorer
To automatically open Zeus workspace files from inside Windows Explorer, save the code below to the ZeusWorkspace.reg file and import that file into the registry using RegEdit.

IMPORTANT NOTE: The <User ID> references in the code needs to be changed to your user id and you need to make sure Zeus has been installed in that folder location.

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ZeusWorkspace]
@="Zeus Workspace"

[HKEY_CLASSES_ROOT\ZeusWorkspace\shell]

[HKEY_CLASSES_ROOT\ZeusWorkspace\shell\open]

[HKEY_CLASSES_ROOT\ZeusWorkspace\shell\open\command]
@="\"C:\\Users\\<User ID>\\AppData\\Local\\Programs\\Zeus\\z.exe\" -s -w \"%1\""
HINT: In the shell\open\command shown above the -s option means the workspace will be opened in a second (i.e. a new) instance of Zeus. To have the workspace open in the currently running Zeus instance just remove that option.

Then associate the .zwi file extension with that ZeusWorkspace entry using the following registry entry:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zwi]
"Content Type"="text/plain"
"PerceivedType"="text"
@="ZeusWorkspace"
This allows you to double click on Zeus workspace files inside Windows Explorer and have them open in the IDE.

Cheers Jussi
Post Reply