Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Default Web Site vs. Standardwebsite
Message
General information
Forum:
Visual FoxPro
Category:
ActiveVFP
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01003043
Message ID:
01004096
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform