Hi anyone can help me to write a python script to invoke a windows batch script (.bat file) and then keeping the cmd (cmd.exe or the dos window)window alive so as to use the same window to run some other commands. I tried using popen2, but how do i tell the cmd.exe to execute the command once i place the command on stdin. Thx TRILOK.