Author: Rémi Coulom
Date: 06:04:28 06/11/04
Go up one level in this thread
On June 11, 2004 at 08:30:29, Uri Blass wrote: >I have a version of movei that is movei00_8_236.exe > >It is using a lot of files when the number 236 is in it. > >When I change to movei00_8_237.exe I want the new version to use files with the >number 237 in it(the reason is that otherwise if I put both 236.exe and 237.exe >in the same folder they use the same files and can change the same book files >and I do not want 237 to learn to change it's book from games of 236). > >Of course it is possible to put 236 and 237 in different folders but I do not >like this solution. > >I think that the best solution is to tell the program to read the name of the >exe file and copy it to a string and use it when it decide about the names of >the files that it reads or create. > > >The question is how to do it. > >Uri if your main function is int main(int argc, char *argv[]) then argv[0] is the name of the exe Rémi
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.