Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display Folder Name

Status
Not open for further replies.

usweb

Vendor
Aug 29, 2003
5
US
This code:

%= Request.ServerVariables("SCRIPT_NAME") %>

Prints out:
/nmac/toolbox.asp

I need the folder name printed:
Any of these would be fine:
/nmac/
nmac
/nmac

Can someone help me?? thanks!
 
Something like this:
temp=request.servervariables("SCRIPT_NAME")
temp=mid(temp,2)
pos=instr(1,temp,"/")
FolderName=left(temp,pos-1)
 
I use ASP <%@LANGUAGE=&quot;JAVASCRIPT&quot;%>
 
????

_____________________________________________________________________
You can accomplish anything in life, provided that you do not mind who gets credit.
Harry S. Truman

onpnt2.gif

 
sorry,
i meant is your code VB or javascript
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top