摘要:
注意 :1.USES中间要加 SHELLAPI2.路径需要用 Pchar()转换一下, 例如: ShellExecute(Handle, 'open', 'notepad.exe', PChar(SelPath), nil, SW_SHOWNORMAL);WinAPI: ShellExecute - 打开外部程序或文件ShellExecute( hWnd: HWND; {指定父窗口句柄} Operation: PChar; {指定动作, 譬如: open、print} FileName: PChar; {指定要打开的文件或程序} Parameters: PCha 阅读全文