Ummm ... Is this a trick question?
using namespace std;
int main( int argc, char* argv )
cout << "Program name: " << argv
<< "\nArgument: " << argv; << "\n";
It sounds like you probably want to call ShellExecute() or a related API with argv.
[Edit]You editted your question so that it now asks something different; however I think my answer still answers the updated question. Just ignore the "ShellExecute() part.[/Edit]