Results 1 to 2 of 2

Thread: Runtime arguments

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Canada
    Posts
    1
    Does anyone know how I can pass a runtime argument to a vb program? Something like the argc, argv in C.

    Thanks

    Ali

  2. #2
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    You can pass it by using

    filename.exe -argument

    and to retrieve it from a VB app use
    Dim arg as String
    arg = Trim(Command$)
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

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