Server.MapPath question

Results 1 to 2 of 2

Thread: Server.MapPath question

  1. #1
    Join Date
    Dec 1969

    Default Server.MapPath question

    Set f = fso.OpenTextFile(Server.MapPath(strFile), ForWriting, True)<BR><BR>I want to change the directory and really don&#039;t have the time for researching it... If I wanted it to go to a specific directory would I set Server.MapPath to the physical path instead like this?<BR>Set f = fso.OpenTextFile(d:www_root/newsfeed/(strFile), ForWriting, True)<BR><BR><BR>Thanks in advance!<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default Yes

    Set f = fso.OpenTextFile ( Server.Mappath("/") & strFile, ForWriting,Tru)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts