PHV,
thankyou as always for pointing me in the right direction
phypath = cstr(server.MapPath(Request.ServerVariables("PATH_INFO")))
pos=InStrRev(phypath,"\")
phypath = left(phypath,pos-1)
pos=InStrRev(phypath,"\")+1
Response.write MID(phypath, pos)
can i do this in fewer lines...