当前位置 博文首页 > vbs中获取脚本当前路径的2个方法

    vbs中获取脚本当前路径的2个方法

    作者:admin 时间:2021-02-01 15:10

    方法一:

    复制代码 代码如下:

    currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path

    方法二:
    复制代码 代码如下:

    currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path

    js
    下一篇:没有了