Results 1 to 2 of 2

Thread: Need Some Help!

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Dec 2011
    Posts
    25

    Need Some Help!

    Hello
    i have make little tool for my CD
    I want if some 1 click on the button' i have make so open the file what i need to be
    my coding

    Private Sub XPButton1_Click()
    Shell "\autorun.hta"
    End Sub

    the file i need to open in button its format to *hta

    some 1 please help me for that
    thank you.

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Need Some Help!

    "hta" file extension must be associated with some program that "knows" what to do with that file type.
    If you know the program then you will need to create "file association" first and then use ShellExecute (this windows api function is much more powerful then ordinary Shell) api function to run the file.
    All of the above can be found using forum search.

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