0

I honestly have no idea how to find what I want to know but I will do my best to explain what I would like to know.

There are programs like cmdmenusel.exe which can be called in languages like batch. But when calling it in batch, it requires other variables, like so: Syntax - cmdmenusel.exe {color} {Option 1} {Option 2} etc..

I would like to know how to make a program like this, that accepts and understands variables outside the file when it is called. My plan is to make a mailer program, that accepts the variables like, for example:

mailer.exe -subject "This is a subject" -body "This is the body paragraph." -mailto "[email protected]"

Preferably in C# I would like to able to do this. Thanks.

Thanks in Advance.

  • Right
2

1 Answer 1

0

You can do this by just creating a basic console application and passing the values in as arguments. By default, the Main method with accepts an array of arguments for you to reference.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.