方法一:currentpath = createobject("Scripting.FileSystemObject").GetFolder(".").Path登入後複製方法二:currentpath = createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path登入後複製更多vbs中獲取腳本當前路徑的2個方法相關文章請關注PHP中文網!