I think, if I understand you correctly, that you want your program to return a value.

Forget about the commandline. It is just some text that is passed to your program. It does not exist as a space where you can do things like writing to it. You cannot do anything with it. You cannot use it to pass data back to the calling program.

It sounds to me like you are running this program from a DOS command line. What language is it written in? What kind of data do you want to write back, and what do you want to do with the data that is send back?

Shrog