Command Line Arguments

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
 
Y

Yitzhak Gootvilig

I think U need to write:
"C:\Documents and Settings\xxxx\xxxxxx\Visual Studio
Projects\Music2003\bin\Debug\Music2003.exe A"
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top