vbs中获取脚本当前路径的2个方法
2013年11月30日
作者:junjie
方法一:
currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
方法二:
currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
方法一:
currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path