您好,登錄后才能下訂單哦!
這篇文章將為大家詳細講解有關WinXP下如何使用At,Schtask和Eventtriggers命令,小編覺得挺實用的,因此分享給大家做個參考,希望大家閱讀完這篇文章后可以有所收獲。
C:\>eventtriggers
INFO: No event triggers found.
C:\>eventtriggers /create /tr Mytrigger /tk notepad.exe /eid 1000 /l application
/t error /d "Mydescription"
SUCCESS: The Event Trigger "Mytrigger" has been created.
創建自定義觸發器
C:\>eventtriggers /create /tr mytrigger /tk notepad.exe /so custom
SUCCESS: The Event Trigger "mytrigger" has been created.
用eventcreate命令進行測試。
C:\>eventcreate /l application /so custom /t information /id 100 /d "description
"
SUCCESS: A 'information' type event is created in the 'custom' log/source.
用schtasks命令結束測試的自定義觸發器
C:\>schtasks /end /tn mytrigger1163028
SUCCESS: The scheduled task "mytrigger11630284" has been terminated successfully
或
C:\>taskkill /im notepad.exe /f
SUCCESS: The process "notepad.exe" with PID 188 has been terminated.
以system賬戶創建遠程計算機自定義觸發器
C:\>eventtriggers /create /s \\Z-62C2385F578E4 /u administrator /p windows /tr M
yremotetest /tk notepad.exe /eid 1000 /d "Mytestdescription"
SUCCESS: The Event Trigger "Myremotetest" has been created.
用eventcreate測試遠程計算機自定義觸發器
C:\>eventcreate /s \\Z-62C2385F578E4 /u administrator /p windows /l application
/id 1000 /t information /d "testremotetrigger"
使用schtasks發現成功運行
C:\>schtasks /query /s \\Z-62C2385F578E4 /u administrator /p windows
TaskName Next Run Time Status
==================================== ======================== ===============
Myremotetest14061950 Never Running
關于“WinXP下如何使用At,Schtask和Eventtriggers命令”這篇文章就分享到這里了,希望以上內容可以對大家有一定的幫助,使各位可以學到更多知識,如果覺得文章不錯,請把它分享出去讓更多的人看到。
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。