Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2006
    Posts
    13

    Unanswered: db2cmd run in background

    Here is a sample of one of my batch files.

    echo off
    cls
    del stats.txt
    db2cmd /c db2 -f stats.ddl -z stats.txt

    The batch file only opens for 1/10 of a second. However, the CLP windows stays up until the query is completed which takes about 5 seconds.

    Is there a way of preventing the CLP window from opening (or minimized) and instead run in the background?

    Windows 2000 Server / DB2 UDB Version 8.1
    Last edited by chemaster; 02-22-06 at 23:37.

  2. #2
    Join Date
    Jan 2003
    Posts
    1,605
    Hi,
    I use command:
    Code:
    db2cmd /c /w /i db2 -f stats.ddl -z stats.txt
    This commands suppreses new window, but still one window is visible. For more info about db2cmd command please see DB2 Command Window Command help

    Hope this helps,
    Grofaty

  3. #3
    Join Date
    Apr 2004
    Posts
    54
    use db2clpex.exe instead of db2cmd

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •