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

方法一:

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


方法二:

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

以上是 vbs中获取脚本当前路径的2个方法 的全部内容, 来源链接: utcz.com/z/340629.html

回到顶部