|
-
Jun 1st, 2000, 01:37 AM
#1
Thread Starter
New Member
Hi!
I was wondering if anyone knew how to launch an application like ICQ. How do I detect if it is installed, and how do I launch it? thanks for any help you can give!
-
Jun 1st, 2000, 02:06 AM
#2
Addicted Member
Hi,
I don't know how to see if it installed but I know you can SHELL it to start it ( look for the shell function in vb help )
-
Jun 1st, 2000, 02:28 AM
#3
To find the file first, use the FindFirstFile API.
Code:
Declare Function FindFirstFile Lib "kernel32.dll" Alias "FindFirstFileA" (ByVal lpFileName As String, lpFindFileData As WIN32_FIND_DATA) As Long
-
Jun 1st, 2000, 04:13 AM
#4
Thread Starter
New Member
Thanks!
But is there another way? Finding a file that could be on any drive, anywhere will take a long time. Is there a way to retrieve it from the registry? (For example, the location of the ICQ executable?)
-
Jun 1st, 2000, 04:49 AM
#5
If you want to check the registry, I suggest that you use the RegOpenKeyEx API.
Code:
Declare Function RegOpenKeyEx Lib "advapi32.dll" Alias "RegOpenKeyExA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal ulOptions As Long, ByVal samDesired As Long, phkResult As Long) As Long
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
|