1、使用Timer控件,每分种检测一次是否到时间了。
2、如果到时间,就用ShellExecute函数运行你的程序吧。
2、如果到时间,就用ShellExecute函数运行你的程序吧。
解决方案 »
- delphi7时间判断
- 圣诞快乐,记得改密码。。。。。。。。。。。。。。。。。。。。
- 看到网上有人编写的窗体编辑器,求个思路。
- dbGridEh中,某一字段如何设置成下拉?下拉的内容来源于另外一个表
- 如何用SaveDialog来实现在本机把一个文件从一个文件夹复制到另外一个文件夹中?
- 求救!!!在DELPHI5下如何运行调试用DELPHI开发的.dll文件?
- 今天写了一个从流播放Flash的控件,心情比较好,来散200分
- 关于发短信的问题??拜托各位
- 送50分问一个很简单的问题,在线等待.
- 请问access数据库可以保存像网页之类的文件吗?
- 请问怎样在tstringlist中查找一个字符串?
- 求救!如何转换OleVariant或Variant为接口类型interface?
能不能写些代码呀
比如: ShellExecute(NULL,
"open",
"notepad.exe",
"",
"",
SW_SHOWDEFAULT);
Shellexecute(handle,'open','notepad.exe','',nil,sw_shownormal);是API函数
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
); 例如:打开一个目录:
ShellExecute(handle, 'open','c:\' , nil, nil, SW_SHOWNORMAL);用资源管理器打开一个目录:
ShellExecute(handle, 'explore', 'c:\', nil, nil, SW_SHOWNORMAL);运行notepad程序:
ShellExecute(handle, nil, 'notepad.exe', 'my.txt',nil, SW_SHOWNORMAL);打开一个网页:
ShellExecute(handle, 'open', 'http://www.csdn.net', nil,nil, SW_SHOWNORMAL);运行邮件程序:
ShellExecute(handle, 'open', 'mailto:[email protected]', nil,nil, SW_SHOWNORMAL);执行一个DOS下的拷贝命令:
ShellExecute(handle, nil, 'copy', 'c:\a.txt d:\',nil, SW_SHOWNORMAL);
用个TTImer来计算是否时间到了就行了。