as you may know, functions can have parameters e.g.:
void myFunction(int someNUmber).
so can your main function. it goes like this:
CODE
main(int argc, char *argv[0])
argc is the number of given arguments, and argv is an array of all the arguments.
note: the app's .exe itself is always the first argument or program switch.
if u have myapp.exe /p
then argv[1] (note that array indexers begin with 0) is "/p"
and argc is 2
i'm pretty sure that there is no other way.
cheers
usch