Lugaru's Epsilon
Programmer's
Editor

Context:
Epsilon User's Manual and Reference
   Commands by Topic
      Starting and Stopping Epsilon
         . . .
         Sending Files to a Prior Instance
         MS-Windows Integration Features
            Running Epsilon via a Shortcut
            The Open With Epsilon Shell Extension

Previous   Up    Next
Running Epsilon via a Shortcut  Commands by Topic   Running Other Programs


Epsilon User's Manual and Reference > Commands by Topic > Starting and Stopping Epsilon > MS-Windows Integration Features >

The Open With Epsilon Shell Extension

If you tell Epsilon's installer to add an entry for Epsilon to every file's context menu in Explorer, Epsilon installs a shell extension DLL. You can configure it by creating entries in the lugeps.ini file located in your Windows directory.

These are its default settings, which you can copy to lugeps.ini as a basis for your changes:

[OpenWith]
server=Epsilon
serverflags=
executable=epsilon.exe
runflags=-add -w1
menutext=Open With Epsilon

When you select Open With Epsilon from the menu in Explorer, the shell extension first looks for an Epsilon server named server using Epsilon's -add protocol. If found, it sends the server a command line consisting of the serverflags setting, followed by the file name you selected (inside double quotes).

If there's no such server running, the DLL executes a command line built by concatenating the executable name, the runflags, and the quoted file name. If the executable name is a relative pathname, it first tries to run any executable by that name located in the DLL's current directory. If that fails, it uses the executable name as-is, and lets Windows search for it along the PATH.

If you've selected multiple files, it repeats the above process for each file.

You can alter the menu text Explorer displays by setting the menutext item. This setting doesn't take effect until you restart Explorer, or unload and reload the owitheps.dll file that provides this menu by running regsvr32 /u owitheps.dll, then regsvr32 owitheps.dll. Other changes to the DLL's settings take effect immediately.



Previous   Up    Next
Running Epsilon via a Shortcut  Commands by Topic   Running Other Programs


Lugaru Copyright (C) 1984, 2012 Lugaru Software Ltd. All Rights Reserved.