Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtaining FAT equivalent from URL
Message
 
To
20/08/2002 18:17:18
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00691704
Message ID:
00691781
Views:
14
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform