咳 咳咳 Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-19 #1 譬如我在程序中指定了文件的路径和名称,并想运行它,当它是.zip文件时会自动调用<br>winzip,当是.doc时自动调用Word。应该怎样实现
咳 咳咳 Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-19 #5 winexec好像只能运行可执行文件,我试过了,返回值是0,不成功呀
T tatami Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-19 #6 用ShellExecuteEx可以实现这个功能,不过记得要uses ShellAPI;
I Iknow Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-19 #7 shellexecute就可以了, 使用open作为操作<br><br>ShellExecute(0, "open", ...)<br>
卷 卷起千堆雪tyn Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-19 #8 ShellExecute(GetDeskTopWindow, 'open', '你要打开的文件的路径', nil, nil, 0);