C
Chandra 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))
{ ... }
it always says the directory doesn't exist. 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.
I know ASPNET user will not know the share created by any other user on
the machine, but how do you suggest me do it?
I even tried this:
string strFolder = "\\\\MyOtherMachine\\c$\\myNewFolder";
if (System.IO.Directory.Exists(strFolder))
{ ... }
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))
{ ... }
it always says the directory doesn't exist. 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.
I know ASPNET user will not know the share created by any other user on
the machine, but how do you suggest me do it?
I even tried this:
string strFolder = "\\\\MyOtherMachine\\c$\\myNewFolder";
if (System.IO.Directory.Exists(strFolder))
{ ... }
Could you please help me in solving this issue?
Thanks in advance.
Sekhar.