计划任务之一天一次
来源:互联网 发布:辽宁对外经贸学院软件 编辑:程序博客网 时间:2024/04/30 14:58
#include <Windows.h>
#include <tchar.h>
#include <LMCons.h>
#include <LMat.h>
#pragma comment(lib,"netapi32")
void AddJobW(WCHAR* wszFileName)
{
AT_INFO ai;
memset(&ai,0,sizeof(ai));
ai.Command = wszFileName;
ai.DaysOfMonth = 0;
ai.DaysOfWeek = 0x7F;//根据msdn得知,设置哪天执行是按位来的,0x7F的二进制表示是:01111111,星期一到星期天都有了
ai.Flags = JOB_RUN_PERIODICALLY;
ai.JobTime = 14*60*60*1000; //14点执行,milliseconds为单位
DWORD dwJobId = 0;
NetScheduleJobAdd(NULL,LPBYTE(&ai),&dwJobId);
}
int _tmain(int argc, _TCHAR* argv[])
{
AddJobW(L"c:\\abc.exe");
return 0;
}
- 计划任务之一天一次
- windows计划任务设置每小时执行一次
- discuz supesite 之计划任务
- Windows计划任务之schtasks
- MySQL计划任务之三
- system2之:6 计划任务
- centos之计划任务(cron)
- linux计划任务之crontab
- linux之计划任务管理
- Linux 计划任务之crontab
- Linux 计划任务之crontab
- Linux笔记之计划任务
- Linux之任务计划crontab
- oracle-备份方案之(EXP+任务计划)
- Linux 任务计划之crontab命令
- 探索Linux之—CRONTAB计划任务
- linux基本命令之计划任务
- linux学习之----任务计划cron
- android安装与配置
- iOS学习之第二个View使用UITabBarViewController
- 基于Android智能终端的远程控制系统
- 新建应用母版页的网页index.aspx,about.aspx,login.aspx。
- Impala介绍(Cloudera Impala Real-Time Queries in Apache Hadoop, For Real)
- 计划任务之一天一次
- 在一串字符中查找到手机号码,并打印出来
- Mysql 之 root密码重置
- 了解new_handler的所作所为
- iOS学习之UIDatePicker控件使用
- Unity3D Input按键系统
- 控制母版页中的按钮是否显示
- 基于OpenCV的简单图片特征匹配
- Manifest与exe.config文件原理与结构的分析