To get the current path using VBScript you can use the snippet below.

Samples

VBScript Sample

msgbox GetCurrentFolder()

Function GetCurrentFolder()
	Dim FSO
	Set fso = CreateObject("Scripting.FileSystemObject")
    GetCurrentFolder= FSO.GetAbsolutePathName(".")
End Function

If you have any questions or suggestions feel free to rate this snippet, post a comment or Contact Us via Email.

Related links:

3 thought on “How to get the current path using VBScript”

Leave a Reply