To copy text from a DOS prompt, right-click on the DOS window, and choose Mark:
Then, drag your mouse to select the text:
After you have selected the area of text that you want to copy, press Enter to save the marked area to your clipboard. You can paste it by pressing Ctrl+V.