View Single Post
  #14  
Unread 03-09-2005, 02:08 PM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

I imagine you've seen this example VB code before, and I'm not even sure it's up-to-date with .NET VB, but here's some simple command line code for VB:
Code:
   Public Sub Main(ByVal sArgs() As String)
        'Note the declaration of the Sub Main line
        'It has the sArgs parameter.  This parameter is handled by
        'the system, and contains any command line arguments.

        If sArgs.Length = 0 Then                'If there are no arguments
            Console.WriteLine("Hello World! <-no arguments passed->") 'Just output Hello World
        Else                                    'We have some arguments		
            Dim i As Integer = 0

            While i < sArgs..Length             'So with each argument
                Console.WriteLine("Hello " & sArgs(i) & "!") 'Print out each item
                i = i + 1                       'Increment to the next argument
            End While

        End If

    End Sub
Just copied from some VB website; possibly give 'while' a shot instead of 'for' (I don't remember VB 'for' structure anymore, but it looks like 'while' is much simpler). Just /slap me if this was a waste of your time or if you'd tried this before. It's been about 6 or 7 years since I worked with VB though, so don't /slap me too hard...

Also, command line arguments are usually / (forwardslash) and command, like /autolaunch.

Also, here's a screenshot of the auto-updater as it appears on a Win98SE machine. Personally, I like the slimmer scrollbars of 98; but am just showing you how everything still fits and looks nice.

Quib
Attached Thumbnails
Click image for larger version

Name:	eq2map_au_win98se.jpg
Views:	1308
Size:	56.4 KB
ID:	1727