使用C#在任务计划程序中禁用/启用任务

编程入门 行业动态 更新时间:2024-10-25 08:17:20
本文介绍了使用C#在任务计划程序中禁用/启用任务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

如何在控制面板->中禁用/启用计划的任务? 任务计划程序.我仅在Windows XP平台上寻找解决方案. C#中是否有可用的命名空间?但是,我的想法是使用 WMI 的 Win32_Scheduledjobs .但是, win32_scheduledjobs 不能控制使用 Task Scheduler GUI创建的计划任务. 据我所知,不是使用.NET 2.0访问相同内容的直接方法.是否有使用3.0/3.5的解决方案? 提前感谢.


有时,可能会遇到困难...

Hi,How can disable/enable the scheduled tasks in my Control Panel -> Task Sceduler. I'm looking for a solution in windows xp platform only.Is there any namespace available in C#? However, my idea was to use Win32_Scheduledjobsof WMI. But, win32_scheduledjobsdoes not control the scheduled tasks that are created using the Task Scheduler GUI.To the best of my understanding, there is not direct way to access the same using .NET 2.0. Is there any soluton using 3.0/3.5?Thanks in advance.


Sometimes, Difficult things are possible...

推荐答案

看看这个: www.codeproject /KB/cs/tsnewlib.aspx 谢谢 Have a look at this: www.codeproject/KB/cs/tsnewlib.aspx Thanks

更多推荐

使用C#在任务计划程序中禁用/启用任务

本文发布于:2023-11-12 01:34:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1580136.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:计划   程序

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!