I usually just put a line like this in a file called "runsql.bat" or something like that: sqlplus user/pwd@db @myscript.sql > myscript.log Then, you can just double-click the bat file to run it, or run it from a command line, or the task scheduler. Regards, Brandon From: oracle-l-bounce@xxxxxxxxxxxxx [mailto:oracle-l-bounce@xxxxxxxxxxxxx] On Behalf Of Dba DBA I need to run some .sql scripts from the command line in the background. anyone know how to do this in windows? ________________________________ Privileged/Confidential Information may be contained in this message or attachments hereto. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of this company shall be understood as neither given nor endorsed by it.