|
-
Feb 6th, 2000, 08:02 PM
#1
Thread Starter
Lively Member
How do I run Shortcut Files ?
I tried to Shell a shortcut, but it didn't work, so how do I do ?
Please.
-
Feb 6th, 2000, 10:22 PM
#2
Addicted Member
You need the ShellExecute function.
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 Sub Command1_Click()
Dim sFile$
sFile = "d:\WINNT\Profiles\All Users\Desktop\Netscape Communicator.lnk" ' Run Netscape Shortcut
Call ShellExecute(0&, vbNullString, sFile, vbNullString, vbNullString, vbNormalFocus)
End Sub
------------------
smalig
[email protected]
http://vbcode.webhostme.com/
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|