Command Line Arguments

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

Hello,
I have the following code:
static void Main(string[] args)
{
string c = args[0];

If put the command line argument in the IDE it works fine
If I do this:
"C:\Documents and Settings\xxxx\xxxxxx\Visual Studio
Projects\Music2003\bin\Debug\Music2003.exe A"

It tells me there is no such file
("A" is the parameter)

What am I doing wrong?
Thanks
Mike
 
I think U need to write:
"C:\Documents and Settings\xxxx\xxxxxx\Visual Studio
Projects\Music2003\bin\Debug\Music2003.exe A"
 
Back
Top