Results 1 to 3 of 3

Thread: Double-click a file to open app

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    4

    Question

    How can I make my app process (or just get the name of) a file that was double-clicked on to start my app? The extension is already linked to the app but when I double click the file it just starts the app, now I want to read the file that was clicked on.

    Thanks,
    Steve

  2. #2
    Guest
    It's represented by Command.
    Code:
    Private Sub Form_Load()
        Open Command For Input As #1
        Text1 = Input(LOF(1), 1)
        Close #1
    End Sub
    Basically, you can treat Command as if it was a filename.

  3. #3

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    4
    Would Command contain a full path or just the name of the file, also would the file extension be in 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