36 lines
613 B
C++
36 lines
613 B
C++
|
// AutoRun_Task_Test.cpp : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̨Ӧ<CCA8>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ㡣
|
|||
|
//
|
|||
|
|
|||
|
#include "stdafx.h"
|
|||
|
#include "MyTaskSchedule.h"
|
|||
|
|
|||
|
|
|||
|
int _tmain(int argc, _TCHAR* argv[])
|
|||
|
{
|
|||
|
CMyTaskSchedule task;
|
|||
|
BOOL bRet = FALSE;
|
|||
|
|
|||
|
// <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ƻ<EFBFBD>
|
|||
|
bRet = task.NewTask("520", "C:\\Users\\DemonGan\\Desktop\\520.exe", "", "");
|
|||
|
if (FALSE == bRet)
|
|||
|
{
|
|||
|
printf("Create Task Schedule Error!\n");
|
|||
|
}
|
|||
|
|
|||
|
// <20><>ͣ
|
|||
|
printf("Create Task Schedule OK!\n");
|
|||
|
system("pause");
|
|||
|
|
|||
|
// ж<><D0B6> <20><><EFBFBD><EFBFBD><EFBFBD>ƻ<EFBFBD>
|
|||
|
bRet = task.Delete("520");
|
|||
|
if (FALSE == bRet)
|
|||
|
{
|
|||
|
printf("Delete Task Schedule Error!\n");
|
|||
|
}
|
|||
|
|
|||
|
printf("Delete Task Schedule OK!\n");
|
|||
|
system("pause");
|
|||
|
return 0;
|
|||
|
}
|
|||
|
|