$WBDocRoot - root directory of virtual host

Availability
$WBDocRoot is available for use with all WBSP commands.

Syntax
$WBDocRoot
$WBDocRoot[]

Returns
Physical path to the root directory of the current virtual host.

Here's an example:

<!--
[FormFields]
wb_command=R
-->
<!--WB_BeginTemplate-->
<html>
<body>
The document root directory is:<br>
<b>$wbdocroot</b>
</body>
</html>
 

After running this example, the resulting page in web browser may look like this:

The document root directory is:
E:\WebSrv\webpages\