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