Results 1 to 2 of 2

Thread: FindExecutable API [resolved]

Threaded View

  1. #1

    Thread Starter
    Lively Member UTGrim's Avatar
    Join Date
    Jan 2005
    Location
    Brazil
    Posts
    92

    Resolved FindExecutable API [resolved]

    I'm trying to use the FindExecutable API to find out which is the default application for HTML files. Unfortunately, it returns "" every time...

    Here's my code:

    VB Code:
    1. Dim strVar As String, strResult as String
    2. strResult = FindExecutable("temp.html", App.Path + "\", "") 'Calls FindExecutable API
    3. If strResult <> "" Then 'If the result is not blank
    4.     strVar = ExtractFileName(strVar) 'Extracts filename with a function I made
    5. Else
    6.     strVar = "not detected"
    7. End If
    8. optPreview(0).Caption = "Use Default (" + strVar + ")" 'Sets the caption
    Could anybody help me with this?

    Thanks
    Last edited by UTGrim; Mar 26th, 2005 at 01:48 PM.

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