Results 1 to 2 of 2

Thread: How To Retrieve The Filename Of The File That Is Currently Accessed ?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Posts
    101

    Wink How To Retrieve The Filename Of The File That Is Currently Accessed ?

    Good day !

    Let say I am in a page of a website, may be http://www.abc.com/def.asp

    How can I get the string of the filename, which is "def.asp" in this case in ASP ?

    Thanks a lot !

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Use Request.ServerVariables("SCRIPT_NAME") and get everything after the last "/" in the string.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

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