Hi Michel,
>I was wondering if there is a way in Visual FoxPro to obtain the FAT equivalent of a URL. Basically, from the server itself, if a specific VFP code is executed, given
http://www.mydomain.com, as an example, which would be a Web site on that server, is there a way to know it's FAT equivalent?
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.
Christof
--
Christof