Ahh, I think with all this information I can get it working. Many thanks for your explanations, Henry, and Florian, and Michalis! :) -Mimu > Mimu Bunnylin wrote: >> >> But suppose I want a program that will continue running in a console if >> run from a console, but will not automatically create a new one if run >> from outside a console.