我要实现的功能是每天晚上2点定时备份oracle数据库,以及可以随时进行恢复。
我准备用VC与一个程序实现该功能,我的思想是用exp进行备份,在VC中调用外部命令来实现备份。但有以下问题:
VC下定时做事的方法如何实现,定时器只能定义间隔时间呀?请哪位达人详细讲解!
我准备用VC与一个程序实现该功能,我的思想是用exp进行备份,在VC中调用外部命令来实现备份。但有以下问题:
VC下定时做事的方法如何实现,定时器只能定义间隔时间呀?请哪位达人详细讲解!
解决方案 »
- VC使用OCI访问oracle 10g,Sql正确,却取不到数据
- 如何在MFC使用QUEUE队列
- help me
- 关于窗体数据保存的问题
- 请教怎么清除绘制的图形
- 自己在视上画了个图标 怎么让这图标获得焦点和被选中时高亮显示??
- 有什么方便的方法可以知道一个函数经编译后生成的机器码?
- 有个CDialog,只要一按 Esc 就退出来,可我不想在按 Esc 的退出来,不知道怎样屏蔽该消息?
- windows 程序中内存分配的堆栈结构是怎么样的?
- 关于VFW(Video For Windows)的问题!
- 关键字:局域网聊天室 Select模型 多线程 原码 程序下载
- 请教高手-- 关于控制另外应用程序的…………
加Dlg方法OnTimer seesee MSDN
同意 wuxuan(真心英雄) 的方法GetSystemTime
The GetSystemTime function retrieves the current system date and time. The system time is expressed in Coordinated Universal Time (UTC). VOID GetSystemTime(
LPSYSTEMTIME lpSystemTime // address of system time structure
);
Parameters
lpSystemTime
Pointer to a SYSTEMTIME structure to receive the current system date and time.
Return Values
This function does not return a value.
SYSTEMTIME
The SYSTEMTIME structure represents a date and time using individual members for the month, day, year, weekday, hour, minute, second, and millisecond. typedef struct _SYSTEMTIME { // st
WORD wYear;
WORD wMonth;
WORD wDayOfWeek;
WORD wDay;
WORD wHour;
WORD wMinute;
WORD wSecond;
WORD wMilliseconds;
} SYSTEMTIME;
我是这样定义的:
SYSTEMTIME mm;
GetSystemTime(mm);
结果mm得出来的值好象不对,而且mm如何跟(02:00)进行比较呢?
能否详细点,谢谢!
GetSystemTime(&mm);再试试
呵呵
GetSystemTime 或 CTime类.
简单吧:)
SetWaitableTimer等
exp yangfan/manager@multi file=ibms%date:~4,10%.dmp
请问要如何用ShellExecute来写呢。