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:
After running this example, the resulting page in web browser may look like this: