Hi

I want to set a session variable from the name of the file -

Eg if file name is fred.asp I want to do

session("Fname")= "fred.asp"

Can anybody advise code to get filename?
Ta

Re: Create a session Variable from Filename by Steven

Steven
Tue Feb 22 04:25:52 CST 2005

Function GetFilename(sSource)
Dim sTemp
sTemp = Split(sSource, "\")
GetFilename = sTemp(UBound(sTemp))
End Function

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"IanC" <icarpenter@yahoo.com> wrote in message
news:505709c6.0502220056.6acc7513@posting.google.com...
> Hi
>
> I want to set a session variable from the name of the file -
>
> Eg if file name is fred.asp I want to do
>
> session("Fname")= "fred.asp"
>
> Can anybody advise code to get filename?
> Ta