九溪

溪水润知林,滴露启慧心

用户工具

站点工具


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

差别

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

到此差别页面的链接

两侧同时换到之前的修订记录前一修订版
后一修订版
前一修订版
wiki:windows:windows-run-app-then-do-sth [2020/05/18 18:18] colinwiki:windows:windows-run-app-then-do-sth [2023/01/03 15:25] (当前版本) – 外部编辑 127.0.0.1
行 25: 行 25:
         *[System[band(Keywords,9007199254740992) and (EventID=4688)]]          *[System[band(Keywords,9007199254740992) and (EventID=4688)]] 
         and          and 
-        *[EventData[Data[@Name='NewProcessName'] and (Data='C:\Windows\System32\notepad.exe')]] +        *[EventData[Data[@Name='NewProcessName'] and (Data='C:\Program Portable\TotalCMD64\Totalcmd64.exe')]]
-        and +
-        *[EventData[Data[@Name='ProcessId'] and (Data='0x1b24')]]+
     </Select>     </Select>
   </Query>   </Query>
行 33: 行 31:
 </code> </code>
  
-注:请将上面代码中倒数第6行Data=''中的内容替换为程序A的完整路径、倒数第4行Data=''中的内容替换为进程ID(可在事件筛选器中看到,仅限processId固定的情况)+注:请将上面代码中 @Name='NewProcessName' and Data=''中的路径内容替换为程序A的完整路径
  
 {{https://i.loli.net/2020/05/14/JZGxdw6i5gUMhbV.png|编辑任务计划事件筛选器}} {{https://i.loli.net/2020/05/14/JZGxdw6i5gUMhbV.png|编辑任务计划事件筛选器}}
行 45: 行 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.1589797117.txt.gz · 最后更改: 2023/01/03 15:24 (外部编辑)