If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > how to close db2 command prompt window

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-23-10, 04:34
mann madhan mann madhan is offline
Registered User
 
Join Date: Mar 2010
Posts: 15
Unhappy 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
Reply With Quote
  #2 (permalink)  
Old 10-24-10, 20:07
n_i n_i is offline
:-)
 
Join Date: Jun 2003
Location: Toronto, Canada
Posts: 4,449
use the "-c" option:
Code:
db2cmd -c "db2 -td@ -vf c:\1008.dat"
Reply With Quote
  #3 (permalink)  
Old 10-26-10, 04:19
mann madhan mann madhan is offline
Registered User
 
Join Date: Mar 2010
Posts: 15
it is working

Thanks a lot
Reply With Quote
Reply

Tags
close command window, command prompt window, db2 command prompt

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On