2
Answers

Retrieve args value

Photo of ricardo rosa

ricardo rosa

15y
3k
1
Hi guys

I want to retrieve the value from args.
I have this code
static void Main(string[] args)
        {
            string path = args[0];
            Console.Write(args[0]);

When i run the app i write in the command line app C:\Web Configs\SERVER34\WConfig\web.config

I want to write C:\Web Configs\SERVER34\WConfig\web.config but instead of that i have "C:\Web "

Can anyone help me?

thanks a lot for your precious help

Answers (2)