<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" media="screen" href="/styles/xslt/rss.xslt"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:c9="http://channel9.msdn.com">
<channel>
	<title>Channel 9 Forums - Tech Off - how to read a console application c#</title>
	<atom:link rel="self" type="application/rss+xml" href="http://channel9.msdn.com/Forums/rss"></atom:link>
	<image>
		<url>http://mschnlnine.vo.llnwd.net/d1/Dev/App_Themes/C9/images/feedimage.png</url>
		<title>Channel 9 Forums - Tech Off - how to read a console application c#</title>
		<link>http://channel9.msdn.com/Forums</link>
	</image>
	<description>Channel 9 keeps you up to date with the latest news and behind the scenes info from Microsoft that developers love to keep up with. From LINQ to SilverLight – Watch videos and hear about all the cool technologies coming and the people behind them.</description>
	<link>http://channel9.msdn.com/Forums</link>
	<language>en</language>
	<pubDate>Thu, 23 May 2013 12:04:31 GMT</pubDate>
	<lastBuildDate>Thu, 23 May 2013 12:04:31 GMT</lastBuildDate>
	<generator>Rev9</generator>
	<c9:totalResults>4</c9:totalResults>
	<c9:pageCount>-4</c9:pageCount>
	<c9:pageSize>-1</c9:pageSize>
	<item>
		<title>Tech Off - how to read a console application c#</title>
		<description><![CDATA[<p>Hi, can someone please help me, how could &nbsp;I convert a string input in a console like:</p><p>-u username -p password&nbsp;</p><p>to get username and password as parameters for my procedure. Can i read the input and make an '' if i fine -u put the rest of the string in the parameter username''? is this making any sens? Can someone please help, i assume that it's a very simple thing to do but I'm a begginer and I'm tring to learn <img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-7.gif?v=c9' alt='Perplexed' /> please help me!</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/how-to-read-a-console-application-c/79533714216e4d69b9e1a0d800d6e1dc#79533714216e4d69b9e1a0d800d6e1dc</link>
		<pubDate>Wed, 26 Sep 2012 13:02:21 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/how-to-read-a-console-application-c/79533714216e4d69b9e1a0d800d6e1dc#79533714216e4d69b9e1a0d800d6e1dc</guid>
		<dc:creator>blackCoffee</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/blackCoffee/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - how to read a console application c#</title>
		<description><![CDATA[<p>There are much better forums for programming help. That said, the command line arguments can be found in the args parameter passed to your Main function. You can parse that yourself, or you can search Google for a command line parsing library.</p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/how-to-read-a-console-application-c/25b951a9584b4f569d23a0d800eaec2e#25b951a9584b4f569d23a0d800eaec2e</link>
		<pubDate>Wed, 26 Sep 2012 14:15:19 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/how-to-read-a-console-application-c/25b951a9584b4f569d23a0d800eaec2e#25b951a9584b4f569d23a0d800eaec2e</guid>
		<dc:creator>William Kempf</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/wkempf/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - how to read a console application c#</title>
		<description><![CDATA[<p>@<a href="/Forums/TechOff/how-to-read-a-console-application-c#c25b951a9584b4f569d23a0d800eaec2e">wkempf</a>: Bing!</p><p><img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-2.gif?v=c9' alt='Big Smile' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/how-to-read-a-console-application-c/23c2a79445c04ce3835ba0d801065c93#23c2a79445c04ce3835ba0d801065c93</link>
		<pubDate>Wed, 26 Sep 2012 15:55:13 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/how-to-read-a-console-application-c/23c2a79445c04ce3835ba0d801065c93#23c2a79445c04ce3835ba0d801065c93</guid>
		<dc:creator>JohnAskew</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/JohnAskew/Discussions/RSS</wfw:commentRss>
	</item>
	<item>
		<title>Tech Off - how to read a console application c#</title>
		<description><![CDATA[<p>Not to beat my own drum, but I made a library for parsing command line arguments: <a href="http://ookiicommandline.codeplex.com/">http://ookiicommandline.codeplex.com/</a></p><p>To use it for your example, you'd create a class as follows:</p><p><pre class="brush: csharp">class MyArguments
{
    [CommandLineArgument(&quot;u&quot;)]
    public string UserName { get; set; }
    
    [CommandLineArgument(&quot;p&quot;)]
    public string Password { get; set; }
}</pre></p><p>Then put the following code in your Main function:</p><p><pre class="brush: csharp">public static void Main(string[] args)
{
    CommandLineParser parser = new CommandLineParser(typeof(MyArguments));
    try
    {
        MyArguments arguments = (MyArguments)parser.Parse(args);
        // Do stuff here
    }
    catch( CommandLineException ex )
    {
        Console.WriteLine(ex.Message);
        parser.WriteUsageToConsole();
    }
}</pre></p><p><img src='http://ecn.channel9.msdn.com/o9/content/images/emoticons/emotion-2.gif?v=c9' alt='Big Smile' /></p>]]></description>
		<link>http://channel9.msdn.com/Forums/TechOff/how-to-read-a-console-application-c/e02a5095e5b64946b09ea0d9009a6589#e02a5095e5b64946b09ea0d9009a6589</link>
		<pubDate>Thu, 27 Sep 2012 09:22:08 GMT</pubDate>
		<guid isPermaLink="false">http://channel9.msdn.com/Forums/TechOff/how-to-read-a-console-application-c/e02a5095e5b64946b09ea0d9009a6589#e02a5095e5b64946b09ea0d9009a6589</guid>
		<dc:creator>Sven Groot</dc:creator>
		<slash:comments>4</slash:comments>
		<wfw:commentRss>http://channel9.msdn.com/Niners/Sven Groot/Discussions/RSS</wfw:commentRss>
	</item>
</channel>
</rss>