Results 1 to 2 of 2

Thread: File's problem

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Posts
    4

    Post

    Hello

    I wrote the registry that when double-clicking on files, written by my program, starts the program. It starts the program but I want program to read data from them. For example, MSWord files *.doc when clicked, are starting the MSWord and program automatically open that files. I looked for API but haven't found it.
    Any suggestion to solv this?

  2. #2
    Frenzied Member Buzby's Avatar
    Join Date
    Jan 1999
    Location
    UK
    Posts
    1,670

    Post

    I'm not 100% certain but I think when you launch a file like this the filename is sent to your program as the command line.
    In that case, at the beginning of you program you could check Command$ and see if the file you double-clicked is there.

    Eg;
    If Command$<>"" then
    OpenFile Command$
    endif


    ------------------
    Mark "Buzby" Beeton
    VB Developer
    [email protected]



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