Is there anyway to run SQL statements from a shell command line under win32. I read about the --init-file=file_name command line option but I can't get it to work. Here is what I used....

C:\mysql\bin\mysql.exe --init-file=c:\windows\desktop\sql.txt


[structure of file]

mysql>use database1

mysql>insert into table1 (lname, fname) values ('Lee', 'Alexandria');