LoginSignup
2
3

More than 5 years have passed since last update.

VBScriptで処理した結果をログに書き出す

Posted at
sample.vbs
    Dim objFSO,objFile
    '1:読み取り 2:上書き 8:追加
    Const ForReading = 1, ForWriting = 2, ForAppending = 8
    Set objFSO = WScript.CreateObject("Scripting.FileSystemObject")
    Set objFile = objFSO.OpenTextFile("出力するフォルダパス+ファイル名",ForAppending,True)
    objFile.WriteLine("出力するメッセージ")
    objFile.Close
    Set objFile = Nothing 
    Set objFSO = Nothing
2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3