Output.Logs("登录日志").Save(ProjectPath & "log.txt",True)
看看:
http://www.foxtable.com/help/topics/1439.htm