url manipulation - extract final /folder/ only from u

Discussion in 'ASP General' started by jason, Dec 9, 2003.

  1. jason

    jason Guest

    jason, Dec 9, 2003
    1. Advertisements

  2. jason

    Ray at Guest

    sURL = Request.ServerVariables("URL")
    aParts = Split(sURL, "/")
    sFinalDir = aParts(UBound(aParts)-1)

    I think that should work.

    Ray at work
    Ray at, Dec 9, 2003
    1. Advertisements

  3. jason

    jason Guest

    Allright! That works beautifully - I'll get a lot of mileage of that
    script....many thanks - helps me a lot!

    jason, Dec 9, 2003
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.