In the command shell, the .open command will either open an existing file or create a new one if it doesn't already exist. This can be confusing.
It's even more confusing on Windows if the user has forgotten that the path should be written with forward slashes instead of the usual Windows backslashes. This is the situation that baffled me for some time today. Backslashes in the path are ignored. So my request to open an existing file was changed to a request to open a new file in the default directory. I didn't have permission, so Windows put it into the VirtualStore instead. There was no error message. All I knew was that I was unable to access the data as expected. Even the .databases command displayed what appeared to be the correct path to the file including the backslashes. All I'm asking is that the .open command gives a simple response saying if it created a new file or opened an existing one and display the actual path and filename. This would make it obvious what file had actually been opened. With the above user error the directory would display as the default directory and the filename would contain all the elements of the user's intended path squished together. The message would look something like this. "Opened new file C:/Program Files/SQLite/UsersBobDocumentsProgTest.sqlite" The equivalent message if the user had entered the path correctly would be. "Opened existing file C:/Users/Bob/Documents/Prog/Test.sqlite" This would make it clear to the user that the wrong file had been opened. It seems easily do-able. Hope this helps. Bob _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users