You can do so by this way:
1. create sql file containing whatever commands you want to execute.ex:
d:\test.sql
;
;
;
.
.
;
2. create another sql file containing , say con.sql
"sys/passwd@as sysdba" @d:\test.sql
3. create a .bat file as :
echo off
sqlplus @con.sql
Hope this helps




Reply With Quote