Home > Article > Web Front-end > 2 ways to get the current path of the script in vbs
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!