您的位置:首页 > 编程语言 > VB

vbs 写LOG的方式

2015-07-24 10:30 323 查看





1

Sign in to vote
If you are trying to create a stand alone file that logs what happens in the script I use thsCreate the logfile:Set ObjFSO = CreateObject("Scripting.FileSystemObject")
Set objLog = objFSO.CreateTextFile("c:\temp\log.txt")Add entries to the file:objLog.WriteLine "Whatever output you want."
objLog.WriteLine "You can even add " & strVariables & " if you want"
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: