1、使用Timer控件,每分种检测一次是否到时间了。
2、如果到时间,就用ShellExecute函数运行你的程序吧。

解决方案 »

  1.   

    楼上的,‘ShellExecute’在DELPHI里好象没有这个函数(我在帮助中查找过的)。
    能不能写些代码呀
      

  2.   

    ShellExecute是api函数
    比如:    ShellExecute(NULL,
                     "open",
                     "notepad.exe",
                     "",
                     "",
                     SW_SHOWDEFAULT);
      

  3.   

    请在你的use语句中加入:shellapi模块
      

  4.   

    WinExec('C:\Windows\notepad.exe',SW_Show);或
    Shellexecute(handle,'open','notepad.exe','',nil,sw_shownormal);是API函数
      

  5.   

    HINSTANCE ShellExecute(    HWND hwnd, // handle to parent window
        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);
      

  6.   

    ShellExecute在ShellAPI单元里面
    用个TTImer来计算是否时间到了就行了。