Results 1 to 3 of 3

Thread: console parameters...help!

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    6

    console parameters...help!

    What I am trying to do is make a little console program that will open a URL...simple enough, but I have no experience with console programming, except in C++. What I need to do is get the information passed when the program was run. For example, I want to implement something similar to ping in DOS. When you use ping 0.0.0.0 it will get the 0.0.0.0 parameter and ping that. Thats exactly what I want to do. I want to be able to open up a dos console and run url.exe www.vb-world.net and have it open vb-world. Can u help?

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    The sub Main can take a string array parameter. That array will contain all command line parameters input as if seperated by a space

    Sub Main(ByVal args() As String)
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 2002
    Posts
    6
    thanks alot for the info man

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