用WinExec API函数可以实现。
原型如下:
UINT WinExec(
  LPCSTR lpCmdLine,  // command line
  UINT uCmdShow      // window style
);
详见MSDN。

解决方案 »

  1.   

    ShellExecuteHINSTANCE ShellExecute(
        HWND hwnd, 
        LPCTSTR lpVerb,
        LPCTSTR lpFile, 
        LPCTSTR lpParameters, 
        LPCTSTR lpDirectory,
        INT nShowCmd
    );详细看MSDN
      

  2.   

    举个例子给你吧:
    ::WinExec("C:\\Winnt\\system32\\calc.exe",SW_SHOWNORMAL);
    可以打开计算器。
    第二个参数指明窗口出现时的状态,可以参考ShowWindow函数的参数.
      

  3.   

    WinExec只是为了兼容16位的程序,建议不要使用。请使用ShellExecute和CreateProcess。CreateProcess是Kernel32的函数,速度比ShellExecute快。
      

  4.   

    To congling:
    哈哈,谢谢指点,今天我又学到不少知识。