Results 1 to 7 of 7

Thread: files

  1. #1

    Thread Starter
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872

    files

    i want attach a specified filetype to my own program. so if i doubleclick on a file from that type, it should open my program, an i should be able to use the content of that file in my program

    How can I do this? please help me

  2. #2
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    I think *scratches head* that you set your file association during the Installation process (eg with Wise or Installshield). Havent had to do this yet but maybe there is another way.
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

  3. #3
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    do you mean just YOU want to be able to do it on your machine or do you mean that you want users of your distributed app to be able to do it? If distributed, then beachbum has it right. if just YOU, then use windows explorer to set the file type association on your pc.

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  5. #5

    Thread Starter
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872

    Unhappy thanks but I need more

    Thanks already guys, I can already use some of your stuff

    But what I also wanted to know is: If File1.rob is a file that is attached to my program and I open that File, then it opens my program. But how can the program know that it is opened by doubleclicking on that file, and not on another file or that the program itsself has been opened?
    I just need the path of the file which opened the prgram.

    can you also help me with that?

  6. #6
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    Private Sub Form_Load()
    MsgBox Command$
    End Sub

    Command will return the path
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  7. #7

    Thread Starter
    Fanatic Member robbedaya's Avatar
    Join Date
    Jul 2002
    Location
    Belgium
    Posts
    872
    thanks, I'll try that.

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