vbs中获取脚本当前路径的2个方法
方法一:
复制代码 代码如下:
currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
方法二:
复制代码 代码如下:
currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
《vbs中获取脚本当前路径的2个方法》阅读地址:http://www.haoshilao.net/14872/
已有0条评论,点击查看发表评论