Is it possible to detect which directory a file is running from.

For example if my page "page1.aspx" was loaded from within a folder "myfolder" is there any way page1.aspx can detect this ?

Thanks in advance