I'm looking for a way to handle input data redirection in ExecDos::exec.
Thanks to some threads in the forum, I already found a way to redirect output.
I wanted to do this in DOS :
which gives this syntax in NSIS :sqlite3.exe WebData .dump > WebData.sql
Well... great!ExecDos::exec "sqlite3.exe WebData .dump" "" "WebData.sql"
But now I need to do it the opposite way, which would be, in DOS :
I tried a lot of different syntaxes until now with ExecDos::exec and ExecWait but couldn't make it work...sqlite3.exe WebData < WebData.sql
I tried this, among other things (this attempt looked the most promissing one 🙄)
> Output in log.txt :ExecDos::exec "sqlite3.exe WebData < WebData.sql" "" "log.txt"
sqlite.exe: Error: Too many options: "WebData.sql"(But it works perfectly when I do it in command line directly, so the problem is not with sqlite3.exe, it's with the way arguments are passed to the function by ExecDos...)
Any idea how I could do this? Is something like this possible?
Thank you
Valentin