Getting the Current Path

Results 1 to 2 of 2

Thread: Getting the Current Path

  1. #1
    polarbear Guest

    Default Getting the Current Path

    Hi,<BR><BR>In writing to a file, it seems that the function, CreateTextFile must take in the full physical path. Because I do not want to hard code the path, is there any function I can use to retrieve the current path of the script?<BR><BR>Thank you.

  2. #2
    Join Date
    Dec 1969

    Default RE: Getting the Current Path

    Yes, there is! :)<BR><BR>It&#039s called Server.MapPath... there is a detailed article on 4Guys that explains how to use Server.MapPath...<BR><BR>Using Server.MapPath<BR><BR><BR>Also, you can search the entire 4Guys article index at:<BR><BR><BR>Happy Programming!

Posting Permissions

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