Jun 24, 2008 11:31 AM|hbcontract2002|LINK
I have a question regarding copy file to a folder … here is the structure of the server ..
All web pages (.aspx) are located on server D:\development\website1\webpages\default.aspx … (URL :
http://servername/website1/webpages/default.aspx) … in default.aspx … I need to copy file to D:\FilesFolder\ … right now, it’s being hard-coded in code as :
string FilesLocation = "D:\\FilesFolder\\";
Should we use Server.MapPath or Request.ServerVariables instead of “D:\\FilesFolder\\” ?? D:\\FilesFolder\\ is not a website .. just a folder outside the websites folder (development).