开发者

task scheduler manage at.exe tasks

When creating a new scheduled task, using CreateProcess with at.exe command, I get files in the sc开发者_高级运维heduled tasks folder named at1.job, at2.job, at3.job, etc. Now I want to delete some of them, using c++ programming. I want to search all the at files, look for a specific command in their command line, and delete those at files contain this command. How can I do it? Thanks


Using at.exe is too crude. Use ITaskScheduler. It has an Enum() and a Delete() method. Start reading here, there's a link to an example in C++ on that page.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜