In the Windows cmd, I am using the < operator to read the command input from a file.
sqlite3 mydatabase.sqlite < command.txt
sqlite3 is an application and the content of command.txt is this:
.backup '..\database_backup\2012-11-30-16-16-28.bak'
Everytime, I generate a new command.txt file (because I should change the .bak file name) and then I use the < operator to feed it to the sqlite3.exe. Is there any way that I can circumvent the command.txt generation and feed all input parameters directly to the sqlite3.exe?
Try this:
or this: