怎么用VB打开VFP的prg程序

G5 2005-10-15 04:44:53
怎么用VB打开VFP的prg程序
...全文
245 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
northwolves 2005-10-16
  • 打赏
  • 举报
回复
Private Sub Command1_Click()'ask you to select an open method
Shell "rundll32.exe shell32.dll OpenAs_RunDLL E:\xxx.prg"
End Sub
northwolves 2005-10-16
  • 打赏
  • 举报
回复
Private Sub Command1_Click()
Shell "Rundll32.exe url.dll, FileProtocolHandler E:\xxx.prg"
End Sub
northwolves 2005-10-16
  • 打赏
  • 举报
回复
try:

Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Private Sub Command1_Click()
ShellExecute hwnd, "open", "E:\xxx.prg", vbNullString, vbNullString, 5
End Sub
G5 2005-10-15
  • 打赏
  • 举报
回复
ding

7,759

社区成员

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

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