vbs 写LOG的方式

Question

Sign in to vote

1

Sign in to vote

If you are trying to create a stand alone file that logs what happens in the script I use ths

Create 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"


你可能感兴趣的:(vbs)