Results 1 to 5 of 5

Thread: Run VB app with parameter

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 1999
    Location
    SLOVENIA, Europe
    Posts
    110
    OK, what about output.

    I want my program operate like function.

    some data in and program returns data that can be read.

    Thnx!

    Ermin
    Ermin Gutenberger

    VB.NET 2010

  2. #2

    Lightbulb Better way...

    An easier way is to use the InStr function. For example, if Query is what you're looking for in the command line parameters, use this:
    Code:
    Function IsInCommand(Query as String) As Boolean
      Dim c As String, q As String
      c = LCase$(Command)
      q = LCase$(Query)
      IsInCommand = False
      If InStr(1,c,q)<>0 Then IsInCommand = True
    End Function

  3. #3
    Hyperactive Member
    Join Date
    Jan 1999
    Location
    Rotterdam, Netherlands
    Posts
    386
    You can't use an exe to return a value like in a function, but there are some workarounds, for instance, you can let your program do some processing and write something to a textfile, and let the calling program read that textfile (easiest solution).
    You can also use shared memory or send messages to the calling program (the hard way...)
    Please be more specific about what you want, maybe you can make an ActiveX exe to do what you want.
    Hope this helps

    Crazy D

  4. #4
    New Member
    Join Date
    Apr 2000
    Posts
    15

    Post

    Use Command$.

  5. #5
    New Member
    Join Date
    Jun 2000
    Posts
    1

    Start an .Exe from Html page

    I want to start an exe file from a html page with a lot of different buttons on it.
    Is it possible to start the same .exe, but with a different form as the startup.
    I know that I can use Sub Main(), but i dont know how to.

    Is it better to create a lot of ActiveX Exe?? My program is getting bigger and bigger...

    Thanks..
    Ørjan Aarekol
    Trainee NTC
    Norway

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