急,帮忙看看什么错,在线等

kcw 2004-05-06 01:35:19
下面这句提示“文件未找到”

Shell "IEXPLORE.EXE " + App.Path + "\" + CStr(Date) + ".html", 1

如果用notepad.exe就可以打开,求解
...全文
49 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
recollectpainer 2004-05-06
  • 打赏
  • 举报
回复
你将打开方式换成 notepad.exe 则可打开,而改成 IEXPLORE.EXE 打开则不行
说明报错语句中说的文件未找到是指 IEXPLORE.EXE 文件未找到
在 shell 语句中指明 IEXPLORE.EXE 文件所在路径则问题应可解决
射天狼 2004-05-06
  • 打赏
  • 举报
回复
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 Me.hwnd, "open", "http://www.sohu.com", vbNullString, vbNullString, 1
End Sub
artoksxb 2004-05-06
  • 打赏
  • 举报
回复
这样试试:
Shell "EXPLORER.EXE " + App.Path + "\" + CStr(Date) + ".html", 1
kcw 2004-05-06
  • 打赏
  • 举报
回复
试了一下,不行啊
yjplus 2004-05-06
  • 打赏
  • 举报
回复
"\"换为"/"试试

7,785

社区成员

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

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