vbs中获取脚本当前路径的2个方法
网络编程
方法一:
currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path
方法二:
currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
编辑:编程语言
标签:方法,ParentFolder,ScriptFullName,Wscript,GetFile