Featured post
symlink - C# CreateSymbolicLink doesn't follow through share access -
i'm not sure if c# problem or windows limitation.
i have server running program makes symbolic links in shared folder. can access through link form server normal disk path , share path.
if try access same share other pc can't access linked files. can delete rename... links can't follow links.
i checked acl of link , target files. should able access.
i use following function:
[dllimport("kernel32.dll")] static extern bool createsymboliclink(string lpsymlinkfilename, string lptargetfilename, int dwflags);
maybe have set additional things? or have change windows settings on server?
sorry if solution not programming thing think here have best chances this.
edit 1:
i have share: c:\share
a link: c:\share\file.txt
to destination: d:\file.txt
if access share different pc can't access data of file.txt.
this page tuxera has description of reason
the similar concept of symbolic link available in windows vista. symbolic links can redirect file or directory defined absolute or relative path. when defined on remote file system, processed on local system, whereas directory junctions processed on file server, makes difference when target not accessible file server.
the createsymboliclink function create link interpreted client. client computer (not server) trying access file name d:\file.txt of course not exist on client.
for windows junction or reparse point work on server example. easiest way create 1 outside of code use sysinternals junction tool.
- Get link
- X
- Other Apps
Comments
Post a Comment