您现在的位置是:网站首页> 编程资料编程资料

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

2023-05-25 364人已围观

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

方法一:

复制代码 代码如下:

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

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

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

-六神源码网