Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2010
    Posts
    15

    Unhappy Unanswered: how to close db2 command prompt window

    HI ALL

    i have a some files to upload every 1 hour in my db2 9.5 server (windows 2003)
    so i write a EXE to run every 1 hour.The EXE will execute the following command "db2cmd db2 -td@ -vf c:\\1008.dat"

    in that 1008.dat file

    CONNECT to TEST user db2admin using password@
    IMPORT query....@
    CONNECT RESET@

    All works fine but the issue is : the command prompt window is not getting closed eg: for one day 24 command prompt window will open.

    kindly help me to solve this issue..

    i am not good in english. kindly ignore my mistakes

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto, Canada
    Posts
    5,516
    Provided Answers: 1
    use the "-c" option:
    Code:
    db2cmd -c "db2 -td@ -vf c:\1008.dat"

  3. #3
    Join Date
    Mar 2010
    Posts
    15

    it is working

    Thanks a lot

Tags for this Thread

Posting Permissions

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