方法一:
复制代码 代码如下:
currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
方法二:
复制代码 代码如下:
currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
您可能感兴趣的文章:
本文由 华域联盟 原创撰写:华域联盟 » vbs中获取脚本当前路径的2个方法
转载请保留出处和原文链接:https://www.cnhackhy.com/16907.htm