Josh Don said: > I have read http://www.sqlite.org/sqlite.html > > I want to get something like this working: > > [C:\test.js] > WS=new ActiveXObject('WScript.Shell') > WS.Run('C:\\sqlite.exe "C:\\test.db" .read "C:\\query.txt" .output > "C:\\OUT.txt" ') > > [C:\query.txt] contains... > select * from sqlite_master; > > What's up? > I have searched for links to sample command usage > and sample databases. please help.
Josh, Your friend here is the redirection operators. The following command line should work the best: sqlite test.db < query.txt These operators are important to understand if you're going to be doing this kind of scripting. Clay Dowling -- Lazarus Notes from Lazarus Internet Development http://www.lazarusid.com/notes/ Articles, Reviews and Commentary on web development

