about sqlite database

Posted by Phost on Sat 06 Nov 2010 04:10 AM — 4 posts, 16,729 views.

#0
hello ,i have a simple question.
if a sqlite database is not in the same directory with the mush exe file, how can i access and operate the sqlite database?
Australia Forum Administrator #1
Specify the full path name when you open it. Or a relative one, if possible.

For example:


GetInfo (66) .. "databases\\mydatabase.db"  -- a subdirectory of MUSHclient.exe

or:

"C:\\somewhere\\mydatabase.db"

Amended on Sat 06 Nov 2010 04:40 AM by Nick Gammon
#2
yeah.i didn't double use \\.
now the problem solved .thanks!
#3
I believe you can also use forward slashes...so you don't have to remember to "escape" the backslashes in the path.

ie:

GetInfo (66) .. "databases/mydatabase.db"  -- a subdirectory of MUSHclient.exe

or:

"C:/somewhere/database.db"