呵呵,这个问题很简单:
Visual Basic的程序管理器有DDE接口。只须将DDE客户的LinkTopic设为"PROGMAN|PROGMAN"就能和程序管理器(Progman.exe)建立DDE链接,然后可以使用CreatGroup建立“开始“中的程序组,AddItem向程序组中添加程序,ShowGroup显示程序组。
这在《Visual Basic6.0入门与提高》一书中的“开发DDE应用程序“一章中有详细介绍。
Visual Basic的程序管理器有DDE接口。只须将DDE客户的LinkTopic设为"PROGMAN|PROGMAN"就能和程序管理器(Progman.exe)建立DDE链接,然后可以使用CreatGroup建立“开始“中的程序组,AddItem向程序组中添加程序,ShowGroup显示程序组。
这在《Visual Basic6.0入门与提高》一书中的“开发DDE应用程序“一章中有详细介绍。
2、在WINDOWS/Start Menu/下加快捷方式,就可以創建在開始菜單中。
to lou_df:什么文件名呢
http://www.applevb.com/sourcecode/shelllnk.zip
可以在特定目录(开始菜单、系统、我的文档)下创建快捷方式
http://www.applevb.com/sourcecode/shelllnk.zip
(ByVal Forder As String, ByVal ShortCutName As String, _
ByVal ExePath As String, ByVal Params As String) As LongDim ret As Long
ret = fCreateShellLink("..\..\Desktop", "MyName", "c:\tools\spe3\pe2.exe", "")
ret = fCreateShellLink("..", "MyName", "c:\tools\spe3\pe2.exe", "")
ret = fCreateShellLink(".", "MyName", "c:\tools\spe3\pe2.exe", "")这需要一个动态连接库vb5stkit.dll,不算什么好办法。
Dim WshShell As New IWshRuntimeLibrary.IWshShell_Class
Dim oShellLink As New IWshRuntimeLibrary.IWshShortcut_Class
Set oShellLink = WshShell.CreateShortcut(WshShell.SpecialFolders("StartMenu") & "\Shortcut Script.lnk")
oShellLink.TargetPath = WshShell.ExpandEnvironmentStrings("%WinDir%") & "\notepad.exe"
oShellLink.WindowStyle = 1
oShellLink.Hotkey = "CTRL+SHIFT+F"
oShellLink.IconLocation = WshShell.ExpandEnvironmentStrings("%WinDir%") & "\notepad.exe"
oShellLink.Description = "Shortcut Script"
'oShellLink.WorkingDirectory = WshShell.CreateShortcut(WshShell.SpecialFolders("StartMenu"))
oShellLink.Save
vbPRORPortrait 1 横向
vbPRORLandscape 2 纵向