yes, you can pick up the parameters thus:
int
main(int argc, char *argv[])
{
// argc will tell you how many arguments were on the command line
// *argv is an array of pointers to those arguments.
}
argv[0] points to the name of the program so
C:\>Myprog.exe one two three
argc = 3
argv[0] = "Myprog.exe"
argv[1] = "one"
argv[2] = "two"
argv[3] = "three"
OK ?
Georges
|