Close db2cmd prompt after command execution from a batch file

后端 未结 2 1340
借酒劲吻你
借酒劲吻你 2021-01-27 08:15

I am trying to close the db2cmd after executing a command. Goal is to get this file perfect before I schedule it with a task scheduler to run everyday at 2100 hours. The batch f

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-27 08:56

    You probably want to add the command line switch /c to your command

    start C:\"Program Files"\IBM\SQLLIB\BIN\db2cmdadmin.exe /c "db2 -tvf D:\stats.sql > D:\stats.output"
    

    as explained in the manual.

提交回复
热议问题