原本这应是用OLE的方式来做,但可用以下的方式来做,前题是有vb所提供的vb5stkit.dll所以令人不太愉快
(本文来源于图老师网站,更多请访问http://m.tulaoshi.com/bianchengyuyan/)Private Declare Function fCreateShellLink Lib "vb5stkit.dll" _ (ByVal Forder As String, ByVal ShortCutName As String, _ ByVal ExePath As String, ByVal Params As String) As LongDim ret As Long'放在DeskTopret = fCreateShellLink("....Desktop", "MyName", "c:toolsspe3pe2.exe", "")'放在开始功能表ret = fCreateShellLink("..", "MyName", "c:toolsspe3pe2.exe", "")'放在程式集功能表ret = fCreateShellLink(".", "MyName", "c:toolsspe3pe2.exe", "")