--- In editplus@yahoogroups.com, "frederickmc" <fr@...> wrote:
>
> I need two different sets of ini and syntax directories for different projects
(primarily because of the templates). I have two shortcuts to start Edit Plus:
>
> "C:\Program Files\EditPlus\editplus.exe" -d G:\shared\proj1\code -i
G:\shared\EditPlus\proj1
>
> "C:\Program Files\EditPlus\editplus.exe" -d G:\shared\proj2\code -i
G:\shared\EditPlus\proj2
>
> (Note: I changed the default install location from "EditPlus 3" to "EditPlus"
>
> The problem is, when I open EP and use Tools > Set Directories it affects both
instances of EP, even if I have both open at the time I change it.
>
> I have moved C:\Setting and Documents\<user name>\Application Data\EditPlus 3
so that it cannot use the files located there.
>
> It appears that the values from Tools > Set Directories is stored in the
registry, at HKEY_CURRENT_USER\Software\ES-Computing\EditPlus 3\Install\ in the
keys STX ACP CTL and INI directory. It is unfortunate it isn't stored in an ini
file! And it appears the command line option
> -i directory
> is not overriding the registry entry.
>
> If I rename the registry entries, then open EP and change the Set Directories
entries, the registry entries are recreated. Thus, it appears there is no way
around this problem.
>
> Additionally, it is evident that EP isn't reading editplus_u.ini from the
command line -i path, because in order to open a second instance I have to allow
multiple instances in the first one I open. (The setting for multiple instances
is in editplus_u.ini)
>
> Any help would be appreciated.
>
> Frederick Mc
>
Further information:
If I have opened
"C:\Program Files\EditPlus\editplus.exe" -d G:\shared\proj1\code -i
G:\shared\EditPlus\proj1
and verify that Tool > Set Directories > INI File Directory is
G:/shared\EditPlus\proj1 then open
"C:\Program Files\EditPlus\editplus.exe" -d G:\shared\proj2\code -i
G:\shared\EditPlus\proj2
the INI File Directory in Set Directories in the first instance is changed to
G:\shared\EditPlus\proj2
So, in a way the -i command line option does override the registry setting - but
it rewrites the registry setting, affecting all instances of EditPlus. And
changes to Set Directories in any instance affect all instances. Therefore, it
is impossible to have separate stx, ctl, acp, and template directories.
I believe this worked correctly in the previous version!