rodrigo guerra <em************@yahoo.com> wrote:
i need a exe file that will take a parameter from the command line and
launch the default application that the user has to plays a video file (the
param from command file). and then the exe files finishes.
is that possible. ? how can i do it ? links? articles ?
Getting parameters from the command line is easy - just make your Main
method take a string array as an argument. For instance:
using System;
class Test
{
static void Main (string[] args)
{
Console.WriteLine ("{0} arguments provided:");
foreach (string arg in args)
{
Console.WriteLine (arg);
}
}
}
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too