九溪

溪水润知林,滴露启慧心

用户工具

站点工具


wiki:windows:windows-run-app-then-do-sth

差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
wiki:windows:windows-run-app-then-do-sth [2020/05/14 10:05] – [参考] colinwiki:windows:windows-run-app-then-do-sth [2023/01/03 15:25] (当前版本) – 外部编辑 127.0.0.1
行 23: 行 23:
   <Query Id="0" Path="Security">   <Query Id="0" Path="Security">
     <Select Path="Security">     <Select Path="Security">
- *[System[band(Keywords,9007199254740992) and  +        *[System[band(Keywords,9007199254740992) and (EventID=4688)]]  
- (EventID=4688)]] and  +        and  
- *[EventData[Data[@Name='NewProcessName'] and  +        *[EventData[Data[@Name='NewProcessName'] and (Data='C:\Program Portable\TotalCMD64\Totalcmd64.exe')]] 
- (Data='C:\Windows\System32\notepad.exe')]] +    </Select>
- </Select>+
   </Query>   </Query>
 </QueryList> </QueryList>
 </code> </code>
  
-注:请将上面代码中倒数第四行Data=''中的内容替换为程序A的完整路径.+注:请将上面代码中 @Name='NewProcessName' and Data=''中的路径内容替换为程序A的完整路径
  
 {{https://i.loli.net/2020/05/14/JZGxdw6i5gUMhbV.png|编辑任务计划事件筛选器}} {{https://i.loli.net/2020/05/14/JZGxdw6i5gUMhbV.png|编辑任务计划事件筛选器}}
行 44: 行 43:
   - [[https://superuser.com/questions/745318/how-to-start-a-program-when-another-one-is-started|How to start a program when another one is started]]   - [[https://superuser.com/questions/745318/how-to-start-a-program-when-another-one-is-started|How to start a program when another one is started]]
   - [[:wiki:app:autohotkey]]   - [[:wiki:app:autohotkey]]
 +  - [[https://docs.microsoft.com/zh-cn/windows/win32/adsi/search-filter-syntax|搜索筛选器语法]]
wiki/windows/windows-run-app-then-do-sth.1589421938.txt.gz · 最后更改: 2023/01/03 15:24 (外部编辑)