Michael Sterling
asked on
Why does my 1st command line argument show up as a path to vshost.exe?
I'm building a desktop application in VS 2012 C#. While testing the applcation, I'm reading in commmand line arguments that i've set in the debug section of the application properties. I've only set 4 values (each separated by a space). However, when, in my code I attempt to access args[0], it is not the first argument that i've put in, its the path on my machine that leads to the vshost.exe file in the debug directory of my application file structure. Why is this and how do I prevent this from happening? I really want my 1st argument to be what I have typed into the debug section of the application properties.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This was always the case in C# and I believe in VB .Net. Were you using a Visual Basic pre .Net version where I believe it worked as you stated.
ASKER
thanks
ASKER