Results 1 to 4 of 4

Thread: Command Lines

  1. #1

    Thread Starter
    Addicted Member WAcKeD's Avatar
    Join Date
    Aug 2000
    Posts
    211

    Question

    Okay, now how would I load an application like with a command line like this:
    -game cstrike +connect 127.0.0.1:_____ +password ____

    where the two blanks ____ are 2 text box' will be used for the input. Does anyonw know how thats done?? Soon enough I will finally understand the way VB works.
    Thankz,
    WAcKeD

  2. #2
    Guest
    Use the Command function to get the Command Line argument.

    Code:
    Private Sub Form_Load()
        'Display the command line argument in a TextBox
        Text1 = Command
    End Sub

  3. #3

    Thread Starter
    Addicted Member WAcKeD's Avatar
    Join Date
    Aug 2000
    Posts
    211

    Exclamation huh?

    so, megatron, how do I use that little code? I don't understand. Help!
    Thankz,
    WAcKeD

  4. #4
    Guest
    The following is what you would type in the command prompt.
    C:\>MyProgram.exe MyArgument

    Now your application should load.

    Code:
    Private Sub Form_Load()
        'Display the command line argument (in this case it's MyArgument) in a TextBox
        Text1 = Command
    End Sub

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