VBS: How to get the folder which contains the .vbs file itself


This is a method to retrieve the folder containing VBS files using VBS. This allows you to perform operations using the absolute path to the folder containing VBS files.

Code

The variable strFolderPath will store the folder path.