Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Obtaining FAT equivalent from URL
Message
 
À
21/08/2002 02:33:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00691704
Message ID:
00691786
Vues:
20
Hi Michel,

>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.

I guess I'm still not sure what you need. Any URL points to a virtual directory if you are using IIS. For example, given you have:

http://www.levelextreme.com/images/whatever.gif

and "www.levelextreme.com" is the first web in your IIS configuration, you can use

oRoot = GetObject("IIS://localhost/W3SVC/1/Root")
? AddBS(oRoot.Path)+"\images\whatever.gif"

to get the full path to the image providing the images is not another virtual directory.

Christof
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform