Re: How to pass and get parameter from command line in VB

From: Pásztor, Zoltán (pasztor_at_ml-cons.hu)
Date: 05/20/04

  • Next message: Phu Van Le: "Re: How to pass and get parameter from command line in VB"
    Date: Thu, 20 May 2004 18:15:55 +0200
    
    

    Look up the Command$ function in the help.

    Also, for general programming questions like this you'd better see the
    microsoft.public.vb.general.discussion ng.
    If you don't mind an advice: before asking, try to google the group archive.
    This question, and great many of others, had been asked there literally
    hundreds of times.

    Here's an initial search string that I use (it is not restricted to that ng
    though):
    http://groups.google.com/advanced_group_search?num=100&as_scoring=d&as_ugroup=*.vb.*&as_eq=dotnet&lr=lang_en&hl=en

    The tricky part is to form the correct search phrase...

    The following prase:
       "parameter passing to .exe"
    entered into the 'with *all* of the words' box (without the quotes) yielded
    more than 500 hits, the top three are the following:

    Re: Passing a Runtime Parameter to a VB6 EXE: How To?
    ... I want to compile a VB6 Application which will allow a user to run the
    EXE with the option of passing it a parameter. How do you do this? ...
    microsoft.public.vb.general.discussion - 19 May 2004 by Tony Proctor - View
    Thread (26 articles)

    Re: Run a file with redirected input
    ... parameter to the INVERSE.EXE program. It's a feature of the command
    interpreter (CMD.EXE),
    so to conclude, you need to execute CMD.EXE (or COMMAND.COM) passing ...
    microsoft.public.vb.winapi - 17 May 2004 by Björn Holmgren - View Thread (5
    articles)

    Re: shellexecute on a file, WITH parameters
    ... the associated exe is found and windows starts the EXE passing the
    filename ... the description
    of the call: lpParameters [in] If the lpFile parameter specifies an ...
    microsoft.public.vb.general.discussion - 3 May 2004 by Bob Butler - View
    Thread (9 articles)

    hth

    -- 
    PZ
    Phu Van Le wrote:
    > Hi,
    >
    > I just a beginner in VB. I write a simple application in VB and make
    > it as an executable .EXE file. When I run it from command line in
    > DOS, I need to pass some parameter to it. But I don't know how to
    > code in VB to get this parameter. Can someone help? Thanks.
    >
    > Regards,
    >
    > Phu
    

  • Next message: Phu Van Le: "Re: How to pass and get parameter from command line in VB"

    Relevant Pages

    • Intercepting processes started from other processes or programs
      ... How can I find out what command is being sent to an exe on my computer ... Specifically I go to a web site and it ... passing. ...
      (microsoft.public.windowsxp.security_admin)
    • Re: Simple program not producing output
      ... Pasted the MSDN code into this code file. ... When to a command shell, located the exe. ... public static void PrintValues ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Simple program not producing output
      ... Pasted the MSDN code into this code file. ... When to a command shell, located the exe. ... public static void PrintValues ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Shell Functions and DOS executables
      ... I had to create a .BAT file that actually made the call to the exe, ... Dim wshExec As IWshRuntimeLibrary.wshExec ... I followed the above and the DOS command executes perfectly! ...
      (microsoft.public.vb.general.discussion)
    • Re: Alternate file types for RUN ?
      ... Some of my programs are actually invoked with the RUN command without ... you rename the resulting .EXE into .EXE_VAX ... alternate extension. ... $ show symb arch ...
      (comp.os.vms)