In Windows 10, when I was trying to generate an EOF for a Java program, the CTRL+Z did not work. After doing some research (and help from forum members), it was determined that there is a new option in the cmd prompt in Windows 10:
Check
that, relaunch cmd, and it then works.