Hi All,
I am developing a tool which retrieves files from Server.
I am trying to access netowrk folder in the below way
"\\IP\E$\Folder"
Always Directory.exists(\\IP\E$\Folder\) returns false.(Once we opened the server via run command by giving credentials Directory.Exists returns true
Start->run->Type \\IP\E$\)->Enter Windows Credentials)
I have windows credentials for that Server. Dono how to add Impersonate/Windows Identity.
Can someone help me? Sample code will help me more than theoritica info:(
Advanced thanks
N
Loading
Jaganathan BantheswaranPosted Jan 4, 2012, 7:11 AM
Way one:
You need to use the Win32 methods
NetUseAdd()andNetUseDel()to create the remote connections and access the folders.Way two:
Use WindowsIdentity to access the folders