I'm writing some excel files using a grid and want to save these files onto another server in our domain. I can seem to get the Server.MapPath to point to anther server.
Dim path As String = Server.MapPath("~/MyFile.xls") - This works...stores excel file within the applications directory - which is not what I want
Dim path As String = Server.MapPath("@\\ServerName\deptshare\DEPT\Reports\MyFile.xls") - This is the path I'm trying to get to.
I've tried several different ways and have searched around but can't seem to make this work.
Any help would be appreciated.
Thanks
Dim path As String = Server.MapPath("~/MyFile.xls") - This works...stores excel file within the applications directory - which is not what I want
Dim path As String = Server.MapPath("@\\ServerName\deptshare\DEPT\Reports\MyFile.xls") - This is the path I'm trying to get to.
I've tried several different ways and have searched around but can't seem to make this work.
Any help would be appreciated.
Thanks