您的位置: 首页 > IT文章 > vbs中获取脚本当前路径的2个方法 vbs中获取脚本当前路径的2个方法 分类: IT文章 • 2022-04-13 13:39:39 方法一: 复制代码 代码如下: currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path 方法二: 复制代码 代码如下: currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path