10
3
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!
Have you tried using something like
schtasks /Delete /TN abctask* /F? – Jonah Bishop – 2012-09-20T13:56:57.4901Doesnt work. I think the * wildcard doesn't work as expected. – None – 2012-09-20T14:56:02.150
If the wildcard doesn't work properly in that manner, your best bet might be to obtain the list of tasks with the
/queryoption, 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. – Jonah Bishop – 2012-09-20T17:21:59.267