Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Default Web Site vs. Standardwebsite
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
ActiveVFP
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01003043
Message ID:
01004096
Vues:
26
Simple vfp code to enumerate web site names in IIS:
IISOBJ = getObject("IIS://LocalHost/W3SVC")
For each Object in IISOBJ
	if (Object.Class = "IIsWebServer") then
		? "WWW Site: " +Object.Name + " - " + Object.ServerComment
	endif
endfor
>Arto,
>I'll take a look at this. I'll need to do this in 2 places: postsetup.cpp (need a c++ routine to enumerate the web sites) and WebAppBuilder where it should be fairly easy to do it in vfp..
>>G,
>>
>>Here is a sample how to get all properties from a metabase
>>
>>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iissdk/html/a3471daf-bc6f-4e44-a690-b276f812c6ca.asp?frame=true
>>
>>With a little effort (VB to VFP) you can try it in VFP
>>
>>Here is a site "How to" for ADSI (methods etc.)
>>
>>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/using_the_iads_interfaces.asp?frame=true
>>
>>AT
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform