Here is a sample source code of a function in VBS to retrieve the path of the current folder.
Sample Code
Explanation
This script retrieves the current folder (also known as the current directory) in which the VBS file (executable file) is located.
Note: The terms "current folder" and "current directory" are used interchangeably.