wwwebserver::createvirtual
less than 1 minute to read

Create a virtual Directory on the server.

o.createvirtual(lcVirtual, lcPath, lcIIS4Path)

Return Value

.T. or .F.

Parameters

lcVirtual
Virtual directory to create on the Web server. This will be wconnect or wwThreads or other single name.

lcPath
Physical path that the virtual is mapped to. This is a DOS path.

lcIIS4Path
Optional - IIS 4 and later metabase path which is used to create the virtual below the node passed.

Example

foxpro
DO wwWebServer lcVirtual = "wconnect" && or use "/" for root lcVirtualPath = "c:\wc7\web" *** Specify IIS site and path. Number is the Site ID lcIISPath = "IIS://LOCALHOST/W3SVC/17/ROOT" loSite = CREATEOBJECT("wwWebServer","IIS7") *** Optional if you use the Default Site loSite.cIISVirtualPath = lcIISPath *** Optional - if not specified uses Default AppPool loSite.cApplicationPool = "West Wind Web Connection" ? loSite.CreateVirtual(lcVirtual,lcVirtualPath) ? loSite.cErrorMsg

See also:

Class wwwebserver

© West Wind Technologies, 1996-2024 • Updated: 06/13/19
Comment or report problem with topic