vbscript - 如何使用 vbscript 编写事件日志

标签 vbscript event-log

我想在这个 vbscript 运行时写事件日志。我怎么能

谢谢你的帮助。

最佳答案

像这样:

Set shell = CreateObject("WScript.Shell")
shell.LogEvent 4, "Your Message Here"

4 是严重性级别。您可以了解有关 LogEvent 的更多信息方法在 MSDN .

关于vbscript - 如何使用 vbscript 编写事件日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7534407/

相关文章:

batch-file - 将值从 VBscript 返回到批处理文件而不使用 WScript.echo

stored-procedures - 将存储过程更改为内联sql

ssl - XP POSReady 和 TLS 1.2

asp.net - EventLogWebEventProvider 提供程序未能记录错误代码为 0x80070057 的事件

asp.net - 写入事件日志时出现 System.Security.SecurityException

c - 从驱动程序写入事件日志

javascript - 如何在 HTA 中获取文件的关联图标 (HTML/Javascript/VBScript)

string - 查找字符串中特定字符的索引,然后解析该字符串

xpath - NT事件日志XPath查询

c# - Windows 事件日志问题?