>> On 03-02-11 16:18, BareFeetWare wrote: >> >> What SQLite or C library call could I put before that to set the current >> directory, that the sqlite3_prepare_v2 function would observe when >> processing the attach statement?
> On 04/02/2011, at 2:25 AM, Luuk wrote: > > i'm not a C-programmer Me either, well, just enough to use the SQLite libraries. The rest of my code is in Objective-C. > but: > http://www.delorie.com/gnu/docs/glibc/libc_268.html My question was how can I set the working directory in such a way that the SQL attach command will look for files in that directory, if a path isn't specified. I have just experimented with the C function chdir() and the Objective C method changeCurrentDirectoryPath. Both seem to be observed by the SQLite running of attach commands. So this solves the problem. Thanks Pavel, Luuk, Igor and Simon for steering me in the right direction and for taking the time to reply. I appreciate it. Thanks, Tom BareFeetWare -- Comparison of SQLite GUI tools: http://www.barefeetware.com/sqlite/compare/?ml _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users