Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ about sqlite database

about sqlite database

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Phost   (11 posts)  Bio
Date Sat 06 Nov 2010 04:10 AM (UTC)
Message
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?
Top

Posted by Nick Gammon   Australia  (23,159 posts)  Bio   Forum Administrator
Date Reply #1 on Sat 06 Nov 2010 04:39 AM (UTC)

Amended on Sat 06 Nov 2010 04:40 AM (UTC) by Nick Gammon

Message
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"


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Phost   (11 posts)  Bio
Date Reply #2 on Sat 06 Nov 2010 09:11 AM (UTC)
Message
yeah.i didn't double use \\.
now the problem solved .thanks!
Top

Posted by LezChap   (36 posts)  Bio
Date Reply #3 on Sat 06 Nov 2010 03:01 PM (UTC)

Amended on Sat 06 Nov 2010 03:02 PM (UTC) by LezChap

Message
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"
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,513 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.