1) You should be able to quite easily extract the page name form the value returned by the ServerVariables (Look into Left, Intr etc.)<BR><BR>2) I take it that this is your page, surely you know it's name already? If you need this in a function/sub, why not just pass the name from the page?
remove the path then !!!<BR><BR>dim fullpath<BR><BR>fullpath=request.ServerVariables(" Script_Name")<BR><BR>response.Write mid(fullpath,instrrev(fullpath,"/")+1,len(fullpath)-(instrrev(fullpath,"/")))<BR><BR><BR>jon