Skip error in BATCH file and continue to next command.

Home Forums Scripting General Scripting Skip error in BATCH file and continue to next command.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • Avatar
    h0ndzik
    Member
    #154994

    Hi all,
    I have a batch file with commands, which connect to oracle and give me output. When connection is not possible (etc. locked user), error is occured and batch file is not continueing to other commands. Any idea how skip command with error and execute other commands in batch file? Here is batch file. Thanks

    BATCH:
    %comspec% /c sqlplus -S usr/[email protected] @c:data.sql
    %comspec% /c sqlplus -S usr/[email protected] @c:data2.sql
    %comspec% /c sqlplus -S usr/[email protected] @c:data3.sql
    %comspec% /c sqlplus -S usr/[email protected] @c:data4.sql

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.