Quote Originally Posted by code_glitch View Post
Erm - sorry to say this will but you blundered a little. In his original code he does have a readln statement at the end... And yes, I missed it the first time - who doesn't? otherwise everything else is right on the money. As always.
Ah right! Ok, it would pause until you hit the return key, but then it would disappear. Perhaps Vista and Windows 7 treat command prompts differently than Windows XP and previous?