这样试试
        ShellExecute(handle,'open',PChar('c:\kdt\kdt.exe c:\zjm.txt'),nil,nil,SW_SHOW);

解决方案 »

  1.   

    这是函数说明:
    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", path_to_folder, NULL, NULL, SW_SHOWNORMAL);
    现在你应该知道能不能了吧
      

  2.   

    这说明一个问题您的kdt.exe程序不支持参数化!抱歉哦!
      

  3.   

    那为什么不能分两次来写呢?
    ShellExecute(handle,'open',PChar'c:\kdt\kdt.exe'),nil,nil,SW_SHOW);
    ShellExecute(handle,'open',PChar'c:\zjm.txt'),nil,nil,SW_SHOW);
      

  4.   

    1.如果您的kdt.exe程序支持参数
    winexec('c:\kdt\kdt.exe c:\zjm.txt',sw_show)的写法是正确,
    如:winexec('c:\windows\notepad.exe c:\zjm.txt',sw_show)可以用记事本找开c:\zjm.txt
    2.ShellExecute(handle,'open',PChar('c:\kdt\kdt.exe'),PChar('c:\zjm.txt'),nil,SW_SHOW);
      

  5.   

    不要忘了uses shellapi,其他的上面都说了
      

  6.   

    winexec这样写,但是shellexecute别忘了uses shellapi即可!
      

  7.   

    yang6130(月明@沧海)说的很正确!