12317.html

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

HTML
23
字号
<html>
  <head>
    <title>Re: 应该可能</title>
  </head>
  <body bgcolor="#FFFFFF" vlink="#808080">
    <center>
      <h1>Re: 应该可能</h1>
    </center>
<hr size=7 width=75%>

<hr size=7 width=75%><p>
Posted by <a href="mailto:lindak@liteon.com.tw">阿甘</a> on April 23, 1999 at 16:44:47:<p>
In Reply to: <a href="12316.html">Re: 应该可能</a> posted by 默默 on April 23, 1999 at 16:20:27:<p>
: '这是我自己试的结果 , 应该是可以的<br>: '请先将vb6 or VB6的光碟片中找到shelllnk.vbp开启之后编译成shelllnk.dll<br>: '然后include这个dll (名称为pShelllnk)<p>: Dim linkfile As New cShellLink<br>: Dim WinPath As String<br>: WinPath = "C:\Windows" '或是call API抓出windows path<p>: linkfile.CreateShellLink WinPath + "\desktop\notepad.lnk", WinPath + "\notepad.exe", "c:\windows", "", WinPath + "\notepad.exe", 1, SHOWNORMAL<p>: '这样就可以把记事本的捷径加到桌面上<br>: '不知道是不是你所想要的? :)<br>: 'ps. 可以参考王国荣先生的VB6与API讲座该书,我是参考它作出来的:)<p>我在外国网站search 到example 供各位参考<p>Public Declare Function fCreateShellLink Lib "STKIT432.DLL" _<br>       (ByVal lpstrFolderName As String, _<br>        ByVal lpstrLinkName As String, _<br>        ByVal lpstrLinkPath As String, _<br>        ByVal lpstrLinkArgs As String) As Long<p>Sub Main()<br>Dim x<br>Dim lResult As Long<br>lResult = fCreateShellLink("..\..\Desktop", "Partlist System",                   "\\PRDSER\VOL1\KEVIN\PARTLIST.exe", "")<br>end Sub<br>
<br>
<br><hr size=7 width=75%><p>
<a name="followups">Follow Ups:</a><br>
<ul><!--insert: 12317-->
</ul><!--end: 12317-->
<br><hr size=7 width=75%><p>

</body></html>

⌨️ 快捷键说明

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