Thread: Retrieve data
View Single Post
  #2 (permalink)  
Old November 6th, 2004, 03:12 AM
nokomis nokomis is offline
Authorized User
 
Join Date: Dec 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default



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
Reply With Quote