I’m retrieveing the current path with:
Dim paths As String = HttpContext.Current.Request.FilePath
Which returns something like /VHP/hmo.aspx
What I need to narrow down is the FOLDER (VHP). How do I remove the / before it and the /filename after it?
Does this work for you?
UPDATE
According to your code, you should do this:
Notice how I changed
HttpContext.Current.Request.Url.AbsolutePathforHttpContext.Current.Request.FilePath