Results 1 to 4 of 4

Thread: Command-Line Question?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Mar 2002
    Posts
    269

    Command-Line Question?

    Hi all,

    Can anyone help me out with this. My program can open files from the command line, or more like myprogram.exe path and if command <> "" then it tries to load the file.

    The problem is that, if my program is opened already, how can I send the command to the already open program and where does it go, eg. does my already open program start off again at form_initialize.

    Thank you in advance

  2. #2
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    do you want to open another program if it is already opened ??

    if not you could always check in your program

    VB Code:
    1. If App.PrevInstance = True Then End

  3. #3
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177
    I've made a couple of posts on this subject, using an ActiveX EXE to share information between instances of the same application.

    Here's a link to one of them

  4. #4
    Let me in .. techyspecy's Avatar
    Join Date
    Aug 2002
    Location
    Back to VBF.
    Posts
    2,456
    Originally posted by Aaron Young
    I've made a couple of posts on this subject, using an ActiveX EXE to share information between instances of the same application.

    Here's a link to one of them
    Oh, i misunderstood the question.

    You could use DDE to send information between two applications.

    Search for DDE example on www.pscode.com/vb

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