1. How did you get into DOS mode?
2. Why did you want to run defrag in DOS mode? You should run it in safe-mode, no need for DOS mode.
Try restarting your computer. Describe what happens until you get to this point.
Try typing win and see what happens.
Let us know.