I want to create a single window's bat file that executes some db2 commands. I'm having trouble getting the command line environment set up. If I add the code at the top of my bat from db2cw.bat - db2cmd db2setcp "%1 %2 %3 %4 %5 %6 %7 %8 %9" - it launches a new db2 window which just sits there. What I need it to do is setup the db2 environment in my current command window, not a new one. I tried the -i option, but that did not seem to work. Any suggestions?