Windows 7 box has a list of scheduled tasks - > Default Windows tasks + Certain custom tasks that all start with a certain string. Previous code deleted all tasks with the command:
schtasks /Delete /TN * /F
Instead we want to retain the default Windows tasks, and selectively delete the tasks that start with a certain string say abctask1
, abctask2
. How to proceed further? Thanks!
schtasks /Delete /TN abctask* /F
?/query
option, loop through them finding the ones that match your desired pattern, and kill them off using their full names. Something like a Perl script might be best for this kind of task.