I am using DOSBOX to run some programs which only work on 32-bit versions of Windows. I am currently running Windows 8 64-bit. I need to copy some commands from Windows 8 and paste them into DOSBOX as it would be very troublesome to type the entire command out.

I have searched the web but am unable to find anything on copying from Windows and pasting into DOSBOX. How do I do this?

  • 3
    Based on my research; It doesn't support it. – Ramhound Oct 7 '14 at 14:19

There is already a solution for this by now. Try the latest enhanced DOSBox SVN build with mouse copy/paste and Long File Name (LFN) support. You can now use the right mouse button to select, copy and paste text from and to DOSBox (when the mouse is not locked).

Latest Windows binary + required DLLs, zipped: http://bit.ly/12jANWF

Related forum discussions & sources: http://www.vogons.org/viewtopic.php?f=41&t=41179

  • just for the record... what is the (or at least a) version after which copy paste is supported? – ntg Feb 12 '18 at 4:37

If it's something that you can run every time you launch DOSBox, you could paste it into the DOSBOX configuration at the very end in the [autoexec] section:

# Lines in this section will be run at startup.
# You can put your MOUNT lines here.
  • Of course, this will only work if what you're trying to paste is a DOS command. Have you looked into creating a DOS batch file? – Derek R. Austin Oct 16 '14 at 20:15

If you use an older version of DosBox then you could create a .txt file from the host system which you later change to a .bat file. It should look like this:

mount c C:\Dosfiles\games
  • Is the correct syntax of the mount command mount c: C:\Dosfiles\games? – Twisty Impersonator Mar 12 '17 at 18:28
  • @Twisty Yep, that works too. I just tested and it appears to work with or without the colon. – Ben N Mar 20 '17 at 19:29

DOSBox has no way to have text copied from the host system to it's self, it's emulates an entirely separate environment.


very simple...(in case you are using it for writing a program)

To copy from DOSBox:

  • write a program in DOSBox.

  • save it

  • open saved directory in file browser

  • select the file and open with any text editor.

To copy into DOSBox:

  • open your text file in text editor.

  • save it in the dos box file directory with respected extension. (like .c or .cpp for languages.)

  • open DOSBox

  • Open the file in DOSBox


Another option in case you're using an old DOSBox. Open Word or Excel. Press Alt-F11 to open the macro editor and then control+G to go to the debug window.


S="<paste your text here>"
appactivate "DOSBox",true:for i=1 to len(S):sendkeys mid(s,i,1),true:t=timer:while(timer<t+.5):doevents:wend:next

I used the slowdown loop because the program I was trying to paste into couldn't keep up with SendKeys.

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.