imstillatwork
IS-IT--Management
I get my path like this...
Server.mappath(Request.ServerVariables("Script_Name")
results something like:
C:\ASP\intranet\test\path.asp
How do manipulate that string to just have the last subfolder in the path? ei:
test
So that no matter what folder I put this script in, it will use that folder name as a variable in the script. (I am using a server.include to reuse "this_script.inc" from one location in many pages in differen folders)
make sense? I have never worked with string manipulate before, but i know it can do a lot...
Thanks
Server.mappath(Request.ServerVariables("Script_Name")
results something like:
C:\ASP\intranet\test\path.asp
How do manipulate that string to just have the last subfolder in the path? ei:
test
So that no matter what folder I put this script in, it will use that folder name as a variable in the script. (I am using a server.include to reuse "this_script.inc" from one location in many pages in differen folders)
make sense? I have never worked with string manipulate before, but i know it can do a lot...
Thanks