|
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 Declare Function SHGetSpecialFolderPath Lib "shell32.dll" Alias "SHGetSpecialFolderPathA" (ByVal hwndOwner As Long, ByVal lpszPath As String, ByVal nFolder As Long, ByVal fCreate As Long) As Long
Sub a()
Dim s As String
Dim sPath As String
s = String$(260, 0)
SHGetSpecialFolderPath 0, s, &H1A, 0
sPath = Left$(s, InStr(1, s, Chr$(0)) - 1)
sPath = sPath & "\Microsoft\Internet Explorer\Quick Launch\显示桌面.scf"
ShellExecute 0, "Open", sPath, "", "", 1
End Sub
|
|