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

    Command-line arguments

    I want to pass some arguments to my program when I launch it. Is there any way to do it?


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

    Re: Command-line arguments

    Start your vb exe vile like

    Myprog.exe Param1


    In Myprog you can read it with Command$ function

    dim s as string

    s= Command$

    msgbox s '-> will give the result Param1

    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