用api 的:
函数:
//运行外部文件
Function Long ShellExecute(Long hwindow, String lpOperation, String lpFile, String lpParameters, String lpDirectory, Long nShowCmd) Library 'shell32.dll' Alias for ShellExecuteA
调用:
if key=keya! then
ShellExecute(handle(form1), "open", "f:\qq.jpg", "","", 1)
用api 的:
函数:
//运行外部文件
Function Long ShellExecute(Long hwindow, String lpOperation, String lpFile, String lpParameters, String lpDirectory, Long nShowCmd) Library 'shell32.dll' Alias for ShellExecuteA
调用:
if key=keya! then
ShellExecute(handle(form1), "open", "f:\qq.jpg", "","", 1)