below86 (10/30/2013)
...osql -S %1 -E -d %2 -i "%3%4.sql" -o "%3%4.log" -b
...
Just for your information:
osql is deprecated (and it has some issues. I remember it not working with utf8 files are something like that.)
You can replace it with sqlcmd.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP