I need to routine that will return what 'Request.ApplicationPath' would return in asp.net.
If you are not familiar with that, I just need to know the IIS virtual directory the application is running in, relative to the server root.
I've looked through all the server variables, but don't see anything that will help me, without having to do some string parsing (and even then I'd be guessing at the virtual directory).
A return value would look something like this...where "myapp" is the virtual directory
"/webapps/myapp/"
Any help is much appreciated!
--Michael