$WBCurrDirA - current directory absolute path

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

Syntax
$WBCurrDirA
$WBCurrDirA[]

Returns
Physical path to the directory of current WBSP file (directory where it is located).

Here's an example:

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

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

The current script directory is:
E:\WebSrv\webpages\wbsp\basic\