我希望我的程序运行时自动运行一可执行程序,如:媒体播放机。但是该程序不能显示出窗口,也不能出现在任务栏上,如何实现?
小弟这厢有礼。

解决方案 »

  1.   

    uses shellapi;shellexecute(handle, 'open', 'a.exe', nil, nil, SW_HIDE);
      

  2.   

    Using the Windows Media Player Control in a Console Applicationhttp://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/usingthewindowsmediaplayercontrolinaconsoleapplica.asp
      

  3.   

    用 at 指令运行的东东只出现在进程列表里,其它地方瞧不到滴uses shellapi;shellexecute(handle, 'open', 'at 12:23 mmplar.exe', nil, nil, SW_HIDE);
      

  4.   

    跟上边几位大大一样,调API完成  SW_HIDE
      

  5.   

    太简单了,skertone() 的答案可以。
      

  6.   

    嗯,ShellAPI + SW_HIDE 可以实现你的要求。或者你可以自己做个线程来实现,这样从效率上更高一些。
      

  7.   

    uses shellapi;shellexecute(handle, 'open', 'a.exe', nil, nil, SW_HIDE);
      

  8.   

    h:=findwindow(...,...);
    sendmessage(h,SM_CLOSE,0,0);