eventtriggers: This command-line tool enables an administrator to display and configure Event Triggers on local or remote system.


... 命令"eventtriggers"的示例
... "eventtriggers" 摘自 Microsoft Windows 帮助
... 重要信息,"eventtriggers"命令的提示

命令: "eventtriggers" 开启 Windows 11, 10, .. 不可用

命令"eventtriggers"的示例

在现代 Windows 系统中,事件触发器不再在命令行上使用。 事件触发器还可以在命令行上使用,以在发生某些事件时触发操作。 示例1: 要在用户执行特定命令时显示消息,可以使用以下事件触发器

@echo off
rem Eventtrigger, 显示一条消息, 如果命令 "dir" 被执行

rem 如果命令 "dir" 被执行, 显示以下消息:
if "%1"=="dir" (
  echo "命令 'dir' 已经完成了."
)

示例2: 要在特定事件发生时执行命令,可以使用以下事件触发器

@echo off
rem Eventtrigger, 谁下达命令 "关闭" 执行, 如果命令 "关闭" 被执行

rem 如果命令 "关闭" 被执行, 成为命令 "关闭" 再次执行:
if "%1"=="关闭" (
  关闭 /s /t 0
)

"eventtriggers" 摘自 Microsoft Windows 帮助

Microsoft Windows XP [Version 5.1.2600]
(c) Copyright 1985-2001 Microsoft Corp.

C:\\WINDOWS>


EVENTTRIGGERS /parameter [arguments]

描述:
    此命令行工具允许管理员在本地或远程
    系统上显示并配置“事件触发器”。

参数列表:
    /Create     创建一个新的事件触发器,它将监视并
                根据按照给定条件发生的 NT 日志事件进行操作。

    /Delete     按 ID 删除事件触发器。

    /Query      查询并显示事件触发器的属性和设置。

    /?          显示帮助/用法。

示例:
    EVENTTRIGGERS /Create /?
    EVENTTRIGGERS /Delete /?
    EVENTTRIGGERS /Query  /?

重要信息,"eventtriggers"命令的提示

在现代 Windows 系统中,事件触发器不再在命令行上使用。相反,事件查看器用于监视和处理事件。 事件查看器提供了一个图形用户界面,允许您监视和处理事件。您可以使用事件查看器来: - 要过滤的事件 - 要保存的事件 - 要分析的事件 要使用事件查看器,请从“开始”菜单将其打开。然后,您可以按类型、来源、事件 ID 和其他条件过滤事件。还可以选择保存事件以供以后分析。 以下是使用事件查看器的一些示例: - 要诊断硬件或软件问题,您可以使用事件查看器查找错误消息。 - 为了提高系统的安全性,您可以使用事件查看器来搜索安全事件。 - 要监视系统的性能,您可以使用事件查看器来搜索性能事件。 事件查看器是一个功能强大的工具,可让您监视和处理 Windows 系统中的事件。


Deutsch
English
Español
Français
Italiano
日本語 (Nihongo)
한국어 (Hangugeo)
汉语 (Hànyǔ)
Türkçe
Português
Português
Svenska
Norsk
Dansk
Suomi
Nederlands
Polski









Windows-10


... Windows 10 FAQ
... Windows 10 How To


Windows 10 How To


... Windows 11 How To
... Windows 10 FAQ



指挥 eventtriggers - This command-line tool enables an administrator to display and configure Event Triggers on local or remote system.

HTTP: ... console/cn/078.htm
0.108
28532

Windows 11 MS Terminal APP desktop shortcut!

Activate file extension in the file-type column!

Manage Playback and Record devices on Windows 11!

Image Comparison - Preview in Internal Explorer and Image Viewer!

What are blue double arrows in File Explorer Windows 11, 10?

Black Red Gold Desktop Watch Clock!



(0)