in reply to terminal control in MS
You could also put `pause`; at the end of your script which will stop the dos window closing and wait for you to "Press Any Key".
-----Of all the things I've lost in my life, its my mind I miss the most.
In Section
Seekers of Perl Wisdom