Results 1 to 2 of 2

Thread: detect current directory

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    detect current directory

    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

    Parksie

  2. #2
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    Server.MapPath("") will do it if u are workin with asp.net pages

    if u're with a win app use

    Application.StartupPath
    \m/\m/

Posting Permissions

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



Click Here to Expand Forum to Full Width