<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<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></BODY></HTML>