CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jan 2001
    Posts
    27

    How do you pass a Command line argument?

    Basically I am looking to write a command line argument to start some Java applications. I figure it will be easier in VB than doing the full jar crap in Java. So basically All I need is how to pass an argument to like:

    CommandLine:

    c:/MiscJavaCodeFolder/java MyJavaApplication

    to start the application basically by creating an Exe.

    Also, I figure this will leave the command prompt open, is there a way to kill it or set it's property to invis?



  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: How do you pass a Command line argument?

    In VB you can pass an argument
    c:\MyVb.exe param

    Command$ will contain your parameter

    for example

    msgbox Command$

    will give you -> "param"

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

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

Featured