<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=484522509-23072003><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=484522509-23072003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=484522509-23072003><FONT face=Arial color=#0000ff size=2>My
guess at the reason for this is that erlsrv is running as the windows
system account [unless setup otherwise]. This account would IMO not by default
have access to mapped folders [Which are only visible if you are physically
logged on as the interactive user]. Spe</FONT></SPAN><SPAN
class=484522509-23072003><FONT face=Arial color=#0000ff size=2>cify the path
differently, probably using UNC path names. I cannot remember how to do this
with netware, but on windows you would do something like:</FONT></SPAN></DIV>
<DIV><SPAN class=484522509-23072003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=484522509-23072003><FONT face=Arial color=#0000ff
size=2>file:open("//some_server.some_domain/some_share/some_file",[write]).</FONT></SPAN></DIV>
<DIV><SPAN class=484522509-23072003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=484522509-23072003><FONT face=Arial color=#0000ff
size=2>Rgds,</FONT></SPAN></DIV>
<DIV><SPAN class=484522509-23072003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=484522509-23072003><FONT face=Arial color=#0000ff
size=2>R</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> Erlang Questions
[mailto:erlang@inswitch.us] <BR><B>Sent:</B> 22 July 2003 09:18
PM<BR><B>To:</B> Erlang Questions<BR><B>Subject:</B> Accessing windows net
from erlsrv<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hi, has someone passed through this
before?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I want to access a file located on a mapped net
drive from Erlang using file module and running Erlang as a windows service
(erlsrv).</FONT></DIV>
<DIV><FONT face=Arial size=2>When the mapped drive is not a local directory
Erlang (or Windows) could not solve the access.</FONT></DIV>
<DIV><FONT face=Arial size=2>I have tried six different ways with different
results:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Local folder mapped - running erl ->
</FONT></DIV>
<DIV><FONT face=Arial size=2>1> file:open("f:/pru.txt",
[write]).</FONT></DIV>
<DIV><FONT face=Arial size=2>{ok,IoDevice} </FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Net folder mapped - running erl -> (when the
mapped drive is a Windows 2000)</FONT></DIV>
<DIV><FONT face=Arial size=2>2> file:open("g:/pru.txt",
[write]).</FONT></DIV>
<DIV><FONT face=Arial size=2>{ok,IoDevice} </FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>Net folder mapped -
running erl -> (when the mapped drive is a Novell)</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial
size=2>3> file:open("z:/pru.txt", [write]).</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>{ok,IoDevice}
</FONT></DIV></FONT></FONT></FONT></FONT><FONT face=Arial size=2><FONT
face=Arial size=2><FONT face=Arial size=2> </DIV></DIV>
<DIV>
<DIV>
<DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Local folder mapped - running erlsrv
-></FONT></DIV>
<DIV><FONT face=Arial size=2>4> file:open("f:/pru.txt",
[write]).</FONT></DIV>
<DIV><FONT face=Arial size=2>{ok,IoDevice} </FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Net folder mapped - running erlsrv -> (when
the mapped drive is a Windows 2000)</FONT></DIV>
<DIV><FONT face=Arial size=2>5> file:open("g:/pru.txt",
[write]).</FONT></DIV>
<DIV><FONT face=Arial size=2>{error,eacces} </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Net folder mapped - running erlsrv -> (when
the mapped drive is a Novell)</FONT></DIV>
<DIV><FONT face=Arial size=2>6> file:open("z:/pru.txt",
[write]).</FONT></DIV>
<DIV><FONT face=Arial size=2>{error,einval} </FONT></DIV>
<DIV> </DIV>
<DIV>I need to access a Novell (case 6)</DIV>
<DIV>My doubt is what's the difference between case 3 and 6, if the
difference is in Erlang and how can I solve this.</DIV>
<DIV> </DIV></FONT></FONT></FONT></FONT><FONT face=Arial size=2><FONT
face=Arial size=2><FONT face=Arial
size=2></FONT></DIV></DIV></FONT></FONT></FONT></DIV></FONT></DIV></FONT></DIV></FONT></FONT></DIV></DIV>
<DIV></FONT></FONT><FONT face=Arial size=2>Do you know a way to resolve
this?<BR>
<DIV>I would appreciate any suggestion.</DIV><BR>Thanks,
Carlos.-</DIV></DIV></FONT></FONT></DIV></BLOCKQUOTE></BODY></HTML>