通过批处理文件的事件日志 [英] event log through batch file
问题描述
我知道这听起来很傻,但是我找不到以下命令(使用批处理文件):
1.从现有的事件日志中删除一些日志?
2.从事件日志中读取一些日志.
有没有一种方法可以计算附加到特定事件日志的当前日志的数量?
是否有.net计时器对象在X时间后发出特定信号?
很抱歉提出问题了
Hi,
I know it might sound silly, but I couldn''t find the following commands (using a batch file):
1. delete some log from existing eventlog?
2. Read some log from an eventlog.
Is there a way to count the number of current logs attached to a specific eventlog?
Is there a .net timer-object that signals a specific process after X time?
Sorry for the shower of questions
推荐答案
我不能''找不到以下命令(使用批处理文件)
I couldn''t find the following commands (using a batch file)
它们不可用作DOS命令,但是您可以使用CScript.exe [
They''re not available as DOS-commands, but you can use VBScript[^] from the console in the same way using CScript.exe[^].
As an alternative, you could opt to write a small console-application in C# or VB.NET.
是否存在一个.net计时器对象,该对象在X时间之后发出特定进程的信号?
Is there a .net timer-object that signals a specific process after X time?
在指定的时间段后,有一个引发事件的计时器.它本身并不表示其他进程,您必须编写该部分. 如何"将取决于其他过程所期望的信号类型.
There''s a timer that raises an event after a specified period of time. It doesn''t signal other processes by itself, you''d have to write that part. "How" will depend on what kind of signal the other proces is expecting.
这篇关于通过批处理文件的事件日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!