Forum Moderators: open

Message Too Old, No Replies

How to get the absolute path to a script

AKA - Where am I?

         

s1dev

4:28 am on Jan 12, 2005 (gmt 0)

10+ Year Member



Greetings,

I am attempting to use the appendbodyfromfile of the Persits.MailSender object. It keeps giving the error 'The system cannot find the path specified'.
I am using a relative reference to the file (yes it is there). I like to try an absolute reference, however I do not know where the site is located. Is there an ASP function that returns the absolute path of the current script?

Also, any links to a solid ASP object/function reference would ease my syntax guessing!

Thanks!

s1dev

4:50 am on Jan 12, 2005 (gmt 0)

10+ Year Member



I guess I just needed to look a bit more....

server.mappath(request.servervariables("PATH_INFO"))