How to compile/run from Command Prompt?

I'm kind of stupid and never learned how to do anything with the command prompt. How do you run exe's from command prompt? And how do pass arguments to it? (argc and such)
>program.exe argv[1] argv[2] "argv[3] with spaces"
Topic archived. No new replies allowed.