如何打开文件

tmxkdldw 2004-03-27 02:03:07
某一列上保存有文件的路径名称
(可以是本机器也可能是网络的)
我想通过双击打开这个文件,
请问应该怎么作?
...全文
45 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
tmxkdldw 2004-03-27
  • 打赏
  • 举报
回复
谢谢 flyerlxg(飞鸟)
在打开文件之前我想把它设为只读的怎么做?


flyerlxg 2004-03-27
  • 打赏
  • 举报
回复
函数申请如下:

FUNCTION ulong ShellExecute(ulong hwnd,ref string lpOperation,ref string lpFile,ref string lpParameters,ref string lpDirectory,ulong nShowCmd) LIBRARY "shell32.dll" ALIAS FOR "ShellExecuteA"
tmxkdldw 2004-03-27
  • 打赏
  • 举报
回复
我就是想用这个函数,就是不只到pb里怎样使用,
给点列子
snjxw 2004-03-27
  • 打赏
  • 举报
回复
用API ShellExecute試試

1,079

社区成员

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

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