Results 1 to 5 of 5

Thread: Help! How do you launch an application?

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    11

    Question

    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!

  2. #2
    Addicted Member
    Join Date
    Jul 1999
    Location
    St-Élie d'Orford, Quebec, Canada
    Posts
    133
    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 )

  3. #3
    Guest
    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

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2000
    Posts
    11
    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?)

  5. #5
    Guest
    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
  •  



Click Here to Expand Forum to Full Width