vbs中获取脚本当前路径的2个方法
2014-12-16来源:易贤网

方法一:

代码如下:

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

方法二:

代码如下:

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

更多信息请查看IT技术专栏

推荐信息