Cant seem to figure this one out,,,, although I have been trying for several hours and cant seem to find any good examples on the WWW...
I am attempting to write a program that prints the command-line arguments
of a program...
I did find a example that gives the Name of the program and attemps to find
the argrments to print,,,,,, but does not seem to work...
AnyOne got some Ideas?????? :-O :-/
#include "stdafx.h"
#include <stdio.h>
#include <conio.h>
int _tmain(int argc, char* argv[])
{
int i;
printf("This program is named %s.\n", argv[0]);
for (i = 1; i < argc; ++i)
printf("the argument #%d is %s\n", i, argv[i]);
getch();
return 0;
}