调用其他程序的问题

daviddong 2003-03-17 09:40:05
我如何调用其他的应用程序去打开一个文件


比如有一个*.PDF文件,我想去调用他的应用程序打开
...全文
50 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
shahand 2003-03-21
  • 打赏
  • 举报
回复
run ("notepad.exe "+ls_newfile)
daviddong 2003-03-21
  • 打赏
  • 举报
回复
ls_newfile=dw_1.getitemstring(dw_1.getrow(),'ex_additional')
保存的是个路径,我怎么用NOTEPAD打开这么一个文件那
run ("notepad.exe"...........)
csdsjkk 2003-03-17
  • 打赏
  • 举报
回复
function ulong ShellExecuteA(ulong hwnd,ref string lpOperation, ref string lpFile, ref string lpParameters,ref string lpDirectory, uint nShowCmd ) library 'shell32.dll'
yannankai 2003-03-17
  • 打赏
  • 举报
回复
run
yannankai 2003-03-17
  • 打赏
  • 举报
回复
FUNCTION ulong WinExec(ref string lpCmdLine,ulong nCmdShow) LIBRARY "kernel32.dll"

string Execstring
Execstring = "C:\Program Files\Adobe\Acrobat 5.0\Reader\AcroRd32.exe d:\DS400xM卡的Windows编程指南.pdf"
WinExec(Execstring, 3 )

1,075

社区成员

发帖
与我相关
我的任务
社区描述
PowerBuilder 相关问题讨论
社区管理员
  • 基础类社区
  • WorldMobile
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧