$WBCurrDir - current directory

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

Syntax
$WBCurrDir
$WBCurrDir[]

Returns
Path to the directory of current WBSP file (directory where it is located) relative to the $WBDocRoot.

Here's an example:

<!--
[FormFields]
wb_command=R
-->
<!--WB_BeginTemplate-->
<html>
<body>
The currenet script directory is:<br>
<b>$wbcurrdir</b>
</body>
</html>
 

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

The current script directory is:
/wbsp/basic/