Command line argument

M

Mr. X.

In VB there is Interaction.Command()
It is in namespace : Microsoft.VisualBasic.

In C# I am using dlls, and there is a general function that resolve the
command, and do some manipulation on it.
I need to resolve the Command() from C#, even in dlls.
How can I do that ?

Thanks :)
 
J

Jeff Johnson

In VB there is Interaction.Command()
It is in namespace : Microsoft.VisualBasic.

In C# I am using dlls, and there is a general function that resolve the
command, and do some manipulation on it.
I need to resolve the Command() from C#, even in dlls.
How can I do that ?

Environment.GetCommandLineArgs()

I found this from the very first result returned from a Google search on
".NET command line arguments". I'm not trying to drive traffic away from the
group, but you could get some of your questions answered a lot faster by
searching first.
 
J

Jeff Johnson

My English is not the native language (My native language is Hebrew),
So sorry. I have looked in google too (the searched string : "command line
arguments c sharp), but find always main() main() main() ...

Yes, that's what I found too, but at the very bottom of one of the articles
(that was 99% about Main) was a comment about
Environment.GetCommandLineArgs. To be fair, the article did start out by
saying that it would demonstrate two ways to get the args....
 

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