S
Sekhar
I want to access a shared folder of a different machine (Mapped to my
server) say E:\ (which is actually "\\myothermac\c$\somefolder") from
C#.
If I use
string strFolder = "E:\myNewFolder";
if (System.IO.Directory.Exists(strFolder))
{ ... }
I even tried this:
string strFolder = "\\\\myothermac\\c$\\somefolder"
if (System.IO.Directory.Exists(strFolder))
{ ... }
The condition is always false (though the folder exists). I thought it
might be
something to do with security and I enabled everyone to have full
access on the other machine. But it didnt help either.
I understand the ASPNET user will not know the mapings created by
other users. But how do I overcome this?
Could you please help me in solving this issue?
Thanks in advance.
Sekhar.
server) say E:\ (which is actually "\\myothermac\c$\somefolder") from
C#.
If I use
string strFolder = "E:\myNewFolder";
if (System.IO.Directory.Exists(strFolder))
{ ... }
I even tried this:
string strFolder = "\\\\myothermac\\c$\\somefolder"
if (System.IO.Directory.Exists(strFolder))
{ ... }
The condition is always false (though the folder exists). I thought it
might be
something to do with security and I enabled everyone to have full
access on the other machine. But it didnt help either.
I understand the ASPNET user will not know the mapings created by
other users. But how do I overcome this?
Could you please help me in solving this issue?
Thanks in advance.
Sekhar.