9722.html

来自「以电子书的形式收集了VB一些常见问题解决方法,可以很方便的查找自己需要解决的问题」· HTML 代码 · 共 23 行

HTML
23
字号
<html>
  <head>
    <title>好像不能</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>好像不能</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:winntuser@hotmail.com">Windows NT user</a> on February 01, 1999 at 09:07:46:<p>
In Reply to: <a href="9549.html">Re: 请问,如何呼叫某执行档来执行该档的档案类型</a> posted by 纪文和 on January 25, 1999 at 18:00:25:<p>
: <br>: shell "start 含路径之档名"<p>: 例: shell "start c:\test.txt"<p>: 会自动依据关联启动相关档案<p>我试过,但只会产生ERROR 53<p>我有一个方法,就是用API<p><br>Option Explicit<p>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<p><br>Private Sub Command1_Click()<br>ShellExecute 0, vbNullString, "g:\mp3\25.mp3", "", "", vbNormalFocus<br>End Sub<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 9722-->
</ul><!--end: 9722-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?