如果ddpg.fmx已经和F50RUN32关联即默认是用F50RUN32打开的,你双击这个文件是用F50RUN32打开ddpg.fmx的那么<br>你可以<br>ShellExecute(0,'open',nil,'ddpg.fmx'nil,SW_SHOW);<br>其中'open'中你注册表中文件下shell中打开,编辑,打印等的注册键,如txtfile下有shell目录open,print,<br><br>如果你文件没有关联,<br>你可以用shellexecute(0,'open','F50RUN32.exe','ddpg.fmx',SW_HOW)<br><br>关于SW_Show还有如SW_HIDE以隐藏方式运行文件,SW_NORMAL标准,SW_SHOWMINIMIZED,SW_SHOWMAXIMIZED,SW_MAXIMIZE,SW_SHOWNOACTIVATESW_SHOW,SW_MINIMIZE,SW_SHOWMINNOACTIVE,SW_SHOWNA,SW_RESTORE,SW_SHOWDEFAULT,SW_HIDE<br><br>总共有10个可选<br><br>函数原型<br>function ShellExecute(hWnd: HWND; Operation, FileName, Parameters,<br> Directory: PChar; ShowCmd: Integer): HINST; stdcall;<br><br>