如何调用一个程序,只让其执行就行了,而不显示运行窗口?

解决方案 »

  1.   

    先调用,然后查找到该窗体
    用sendMessage(handlw,SW_HIDE,0,0)让他隐藏掉
      

  2.   

    ShellExecute(Handle,'open','yourfilename.exe','','path',0);不显示运行窗口
    ShellExecute(Handle,'open','yourfilename.exe','','path',1);显示运行窗口
      

  3.   

    ShellExecute(handle, 'open', 'mspaint.exe', nil, nil, SW_HIDE);
                                                          --------
                                                          sw_hide还是sw_showhide,看帮助吧!
      

  4.   

    SW_HIDE Hides the window and activates another window.
      

  5.   

    Form2.FormShow(sender);
    在Form2.Show或在Form2.Create中处理事情试试看
      

  6.   

    ShellExecute(Handle,'open','yourfilename.exe','','path',0);
      

  7.   

    在工程文件加一句
    Application.ShowMainForm := False;
      

  8.   

    formcreate时就form.hide;应该可以吧!最简单的方法
      

  9.   

    uses
      ShellAPI;ShellExecute(Handle,'open',PChar('c:\a.txt'),'','path',SW_HIDE);
    //你需要保证C:\下有a.txt文件
      

  10.   

    ShellExecute(handle,'open','notepad.exe','c:\MyLog.log',nil,SW_Hide );
      

  11.   

    Application.ShowMainForm := False;