Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining FAT equivalent from URL
Message
De
21/08/2002 02:33:51
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00691704
Message ID:
00691783
Vues:
15
>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform