Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Can I tell my chess program to know the name of it's exe file.

Author: Joshua Shriver

Date: 17:39:33 06/11/04

Go up one level in this thread



Parse your argv data.

Believe argv[0] is the filename of the executable being run.

int main(int argc, char *argv[])
{

  printf("%s\n", argv[0]);

  return 0;
}





This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.