If you want DOS, there is TurboCNC, CNC Zeus
http://www.cnczeus.com/ and CNC Pro
http://www.yeagerautomation.com/
I've heard that CNC Pro is no longer being updated, but I'm not sure.
You can write the g-code in any text editor, Notepad in Windows, or use the EDIT command in DOS.