View Full Version : Writing to UNC path
bnewman
06-19-2009, 11:45 PM
I've got a windows form which I'd like to have write a file to a UNC path.
Can somebody explain how to do that?
HostingASPNet
07-05-2009, 05:19 PM
Hello,
You could read this example about Windows impersonation - http://www.codeproject.com/KB/cs/cpimpersonation1.aspx
Regards
scottk
07-16-2009, 01:19 AM
Writing to a UNC path is no different than a local disk path. Think about it: You map a UNC path to a local drive letter then write to it.. which is really writing to the UNC path.
As HostingASPNet indicated you may have to authenticate to have read/write access to the remote storage though.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.