方法一:currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path登录后复制方法二:currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path登录后复制更多vbs中获取脚本当前路径的2个方法相关文章请关注PHP中文网!