Results 1 to 4 of 4

Thread: Open a VB Exe with an option

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    2

    Open a VB Exe with an option

    Is it possible to launch an application in VB which cud be an exe with the option "OPEN WITH" by right clickin a Text file? The need is to use the contents in the text file in to the exe at the double click. Please help

  2. #2
    Hyperactive Member
    Join Date
    Jun 2007
    Posts
    280

    Re: Open a VB Exe with an option

    If I have what you are asking correct Silby you are after the Command$ variable. Here is a tutorial with sample code

    You would then have to set your windows association for text files to your application.
    Slower than a crippled Vista
    More buggy than a fresh XP install
    Look! Down the road, some 50 miles behind the drunken snail.
    It's Ubuntu!

  3. #3

    Thread Starter
    New Member
    Join Date
    Aug 2008
    Posts
    2

    Re: Open a VB Exe with an option

    Thanks Buddy to strike a light Would revert to u with the rest of procedures which i would do to make this work.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Open a VB Exe with an option

    Welcome to VBForums

    There is advice on that in the article How can I use command line parameters in my program? from our Classic VB FAQs (in the FAQ forum, which is shown near the top of our home page)

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