<div dir="ltr">So when erlang is installed as a windows service and I'm logged in and do a restart of the service with a username/password assigned to that service, it sees home as c:\users\username. When the service starts on system boot up, it is seeing home as c:\windows. In the past I've just run it as the system account and it was always c:\windows. Somehow erlang running as a service sees home differently, depending on the situation.<div><br></div><div>-wes</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 16, 2017 at 12:30 AM, Dan Gudmundsson <span dir="ltr"><<a href="mailto:dangud@gmail.com" target="_blank">dangud@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">The cookie file is always read/written from 'home' taken from init:get_arguments().<div><br></div><div>Home is HOMEDRIVE/HOMEPATH or if not set, whatever GetWindowsDirectory() returns.</div><div><br></div></div><br><div class="gmail_quote"><span class=""><div dir="ltr">On Fri, Jun 16, 2017 at 6:36 AM Wes James <<a href="mailto:comptekki@gmail.com" target="_blank">comptekki@gmail.com</a>> wrote:<br></div></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><div dir="ltr">I found if I set erlsrv to run with a particular username/password and start it, it looks for .erlang.cookie in c:\users\username. When I restart the system, it looks for .erlang.cookie in c:\windows. This is on windows 10.<div><br></div><div>-wes</div></div></span>
______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
</blockquote></div>
</blockquote></div><br></div>