Are you running a command prompt and then your program? Is the command prompt using command.com or cmd.exe?