Method one:
currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
Method two:
currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
For more related articles on the two methods of obtaining the current path of the script in vbs, please pay attention to the PHP Chinese website!