如何删除名称以“AliUpdater"开头的所有任务? [英] How do I delete all tasks whose names begin with "AliUpdater"?

查看:100
本文介绍了如何删除名称以“AliUpdater"开头的所有任务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

schtasks /delete /tn "AliUpdater" /f

以上只会删除AliUpdater".是否可以删除名称以AliUpdater"开头的所有任务,例如AliUpdater{123}"、AliUpdater{456}""和AliUpdater{789}"?不需要的任务AliUpdater"带有各种数字.无法预测数量.

The above will delete only "AliUpdater". Is it possible to delete all tasks whose names begin with "AliUpdater", for example "AliUpdater{123}", "AliUpdater{456}", and "AliUpdater{789}"? The unwanted task "AliUpdater" comes with various numbers. It is impossible to predict the number.

推荐答案

如果你还想使用 而不是 (不在您提供的问题标签范围内):

If you wanted to still use cmd instead of powershell, (which is outside of the scope of your provided question tags):

For /F "Tokens=1*Delims=\" %# In ('SchTasks /Query /FO List^|Find /I "AliUpdater"')Do @SchTasks /Delete /TN "%$" /F

这篇关于如何删除名称以“AliUpdater"开头的所有任务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆