Ummm ... Is this a trick question?
#include <iostream>
using namespace std;
int main( int argc, char* argv[] )
{
cout << "Program name: " << argv[0]
<< "\nArgument: " << argv[1]; << "\n";
return 0;
}
It sounds like you probably want to call ShellExecute() or a related API with argv[1].
[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]