Aha, thanks for that, smartass!!


-----Original Message-----
From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of
Richard Birkby
Sent: 29 May 2002 11:21
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] C# CommandLineArgs


class ConsoleTest {
        public static void Main(string[] args) {
                System.Console.WriteLine("{0} {1}", args[0], args[1]);
        }
}

or use something like Chris Sells excellent command line parser from the
Ghengis project[1]



Richard
[1] - http://www.sellsbrothers.com/tools/genghis/

> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf
> Of Wayne Lee
> Sent: 29 May 2002 11:10
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] C# CommandLineArgs
>
>
> All,
>
> Anyone explain I can write a console application to accept command
> line args, eg:
>
> Consoleapp.exe /l:user /p:pass
>
> And then retrieve these via the app? I can see it's something to do
> with the EnvDTE to get the commandlineargs property but the
> documentation doesn't go into too much depth.
>
> Since I've joined this list, yes I admit, I've become lazy but I tend
> to find the knowledge on this list more helpful than MSDN these days
>
> :-)
>
> Thanks all
>
> Wayne Lee
> Evident Systems Ltd
> This email has been scanned with Norton AntiVirus 2002
>
> You can read messages from the DOTNET archive, unsubscribe from
> DOTNET, or subscribe to other DevelopMentor lists at
> http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to