ShellExecute 已经很简单了的;;虽然它是win api
但delphi已经把所有的api 都已封装好了;用不着你再写声明;直接调用即可
shellexcute(0,'open','filename',nil,nil,SW_SHOWNORMA)
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
);