>You mean you need to know the physical location of a virtual directory? With IIS this can be achieved with the following code:
>
>oRoot = GetObject("IIS://localhost/W3SVC/1/Root")
>? oRoot.Path
>
>You can replace localhost with any machine name. The number (1 in the sample) is the web number. If you host several virtual webs or listen to more than one port, you have more webs then the default web. To find a list on all available properties search MSDN for "IIsWebVirtualDir" and "IIsWebDirectory".
>
>Erik Moore had a great article on ADSI (which the above code uses) a while back in FoxPro Advisor.
It's not a virtual directory. It's a directory containing some images. As our framework will serve for various servers, we do not know exactly the FAT equivalent of the URL for the images directory. However, for now, I have created a global variable which holds its value. But, as I already had a global variable for the URL, I thought I could calculate it from it instead of holding another reference for the FAT equivalent.