Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Server.MapPath

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
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
 
never mind... I ended up created a virtual directory within IIS that points to the server.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top