Если вы попробуйте запустить исполняемый файл DOS в современной версии Windows, вместо окна соответствующей программы появится сообщение: «Невозможно запустить это приложение на вашем ПК», поскольку приложения DOS не поддерживаются. Однако, возможности их запуска существуют.
В этой инструкции способы запуска DOS программ и игр в Windows 11 и Windows 10, для чего можно применить несколько различных подходов. На близкую тему: Запуск 16-бит программ в Windows x64.
DOSBox
Если основная ваша задача — запуск старых DOS-игр, возможно, DOSBox будет лучшим вариантом для этого за счет своей отличной совместимости, удобства и сравнительно стабильной работы.
Пример использования DOSBox:
- Скачайте DOSBox для вашей ОС с сайта https://www.dosbox.com/ (в нашем примере — это Windows 11, загружаем Win32 Installer несмотря на то, что система 64-разрядная).
- Подготовьте файлы DOS, которые вы планируете запускать в какой-либо папке на компьютере.
- Запустите DOSBox и подключите эту папку с помощью команды mount. Пример использования:
mount c c:\dos\
в результате выполнения внутри DOSBox содержимое папки C:\dos на компьютере окажется подключено как виртуальный диск C.
- Запустите то, что требуется в командной строке DOSBox с подключенного диска. В примере на изображении ниже я запускаю Norton Commander.
- А уже из него — игру, которая исправно работает.
- И, на всякий случай: Ctrl+F10 — освобождает мышь из окна DOSBox, а Ctrl+F9 — выходит из него.
После установки DOSBox в меню «Пуск», помимо прочего, будет добавлен ярлык для открытия файла конфигурации (открывается в текстовом редакторе, в нём же сохраняется). Для большинства пользователей всё сравнительно исправно работает, но мне пригодилось изменение чувствительности мыши (пункт sensitivity).
Подробные сведения о конфигурации DOSBox можно найти на странице https://www.dosbox.com/wiki/Dosbox.conf
Существуют и альтернативные сборки DOSBox с расширенными возможностями: например, DOSBox-X и DOSBox SVN Daum.
vDos
vDos также позволяет запускать DOS-приложения в Windows последних версий, но стабильную работу мне удалось получить лишь для программ с текстовым интерфейсом, и то далеко не со всеми. Порядок использования:
- Скачиваем и устанавливаем vDos, официальный сайт — https://www.vdos.info/
- Скопируйте папки и файлы DOS в папку с vDos, эта папка со всей внутренней структурой будет работать как диск C: в запущенном vDos.
- Если сразу после установки запустить vDos, автоматически запустится демонстрационная программа DataPerfect. Так как нам это не требуется, откройте файл autoexec.txt в папке установки vDos и удалите строку CALL DPTEST\STARTDP.BAT, сохраните файл и лишь затем запускайте vDos.
- Используйте командную строку для запуска игры. Например, игра расположена в папке vDos во вложенной папке Games\game.exe. Используйте две команды: cd Games для перехода к папке, а затем game.exe для запуска игры. По какой-то причине запуск с указанием полного пути у меня не сработал.
- Как было отмечено выше, мало что получилось запустить с помощью vDos в моем тесте, потому повторю скриншот с файловым менеджером, но уже не из DOSBox.
Возможно, поработав с конфигурацией vDos возможно обеспечить и лучшую работу эмуляции.
NTVDMx64
Старые версии Windows умели запускать DOS-программы без каких-либо дополнительных трюков. В Windows NT это было реализовано с помощью виртуальной машины NTVDM.
NTVDMx64 — патч для современных версий Windows, включая Windows 11 и Windows 10 x64, встраивающий нативную поддержку запуска DOS-программ в систему. Учитывайте следующие нюансы:
- Установка NTVDMx64 меняет файлы системы и требует отключения Secure Boot в БИОС/UEFI
- Антивирусы ругаются на файлы NTVDMx
Поэтому, установка NTVDMx64 — под вашу ответственность.
Принцип использования:
- Компилируем сами из исходников автора https://github.com/leecher1337/ntvdmx64 или берем готовый установщик, например, здесь и используем файл install.bat для установки (вариант HAXM требует включенной виртуализации Intel VT-x, вариант CCPU — нет), запускаем файл install.bat и перезапускаем систему после установки.
- Запускаем программы DOS также, как и любые другие программы прямо из среды Windows.
В моем тесте полностью исправно работали программы DOS с текстовым интерфейсом и, сравнительно нестабильно и медленно — отдельные игры с графическим режимом экрана.
Виртуальная машина
При желании можно попробовать запускать DOS-игры и программы в виртуальной машине. Возможны разные подходы, в моём случае хороший был получен при установке Windows 98, эта система поддерживает запуск DOS-программ в VirtualBox (и не был достигнут при установке FreeDOS и некоторых других попытках).
Я использовал готовый образ виртуального жесткого диска Windows 98 для VirtualBox загруженный с Archive.org (подробнее о том, как найти старые программы на archive.org). Создал виртуальную машину, подключил диск, запустил — почти всё, включая Интернет (для загрузки старых DOS-программ с сайта old-dos.ru) и их запуск исправно, но иногда медленно, работали:
На эту тему может пригодиться инструкция Виртуальные машины VirtualBox для начинающих.
Надеюсь, один из вариантов подойдёт для ваших целей и запуска нужных DOS-программ в современных ОС.
How to Boot My Computer into DOS
Close all the opened programs and shut down the computer. Then, start it up again. If you see the boot menu, start pressing F8 key on the keyboard repeatedly. Windows Advanced Options menu will be opened. Now, select the “Safe Mode with Command Prompt” by pressing the down arrow key. Press enter key. It will boot your computer to DOS mode. Then, MS-DOS command line interface will appear. You are now able to type in any desired commands to execute them in DOS See More .
You can navigate your computer through the command line. You can run your computer in DOS mode by getting into the DOS mode at the time of booting. There is no DOS mode in Apple Macintosh computer.
What is the mode command in DOS?
Mode is an external command that is available for the following Microsoft operating syste ms as mode., and com.
How to start windows xp in ms dos mode?
How to Start a Computer in DOS Mode in Windows XP
Close any open programs and restart your computer. If it’s already off, start it up. Press the “F8” button on your keyboard repeatedly when the first boot menu appears. The “Windows Advanced Options Menu” should appear Press the down arrow key on your keyboard to select the “Safe Mode with Command Prompt” option. Press the “Enter” key to boot into DOS mode. The MS-DOS command line interface should appear momentarily. Type in the desired DOS commands to execute them. See the “DOS Command List” link in the Resources section for information about DOS commands.
If you run Windows XP on your computers and one or more of them are having issues, start them in DOS mode to correct the issues separate from the Windows environment. Close any open programs and restart your computer. If it’s already off, start it up. Press the “F8” button on your keyboard repeatedly when the first boot menu appears.
One of the next things we wondered was, how do I restart a Windows computer into MS-DOS?
Following the steps above opens an MS-DOS shell. However, if you are attempting to troubleshoot an issue with the computer and are using Microsoft Windows 95 or Windows 98, we suggest you restart the computer into MS-DOS. To do this, follow the steps below. How to use the Windows command line (DOS).
How to exit DOS mode in Windows 10?
To exit from DOS mode, follow the instructions that are given below: Restart the computer by using the power Or to shut down the computer, type “shutdown -r”. It will immediately restart your computer. If you see the boot menu, start pressing the F8 key on the keyboard repeatedly. Windows Advanced Options menu will be opened.
Now, select the “Safe Mode with Command Prompt” by pressing the down arrow key. Press enter key. It will boot your computer to DOS mode. Then, the MS-DOS command-line interface will appear. You are now able to type in any desired commands to execute them in DOS mode. To shut down the computer, type “shutdown -r”.
How to use the Windows command line (DOS)?
How to use the Windows command line (DOS). If you are attempting to get into an MS-DOS prompt to troubleshoot the computer, boot the computer into Safe Mode. Windows 2000 and XP users who cannot boot the computer into Normal Windows mode or Safe Mode can also enter and use the Recovery Console to manage their computer from a prompt.
How to create an MS-DOS boot disk in Windows XP?
I mentioned before that you could create an MS-DOS boot disk in Windows XP. Several readers have asked about the procedure, so here it is. Insert a disk into your floppy disk drive and run Windows Explorer. Right-click the Drive A icon and choose Format. In the Format dialog.
Even today, in some cases, one cannot do without programs designed to work in the DOS operating system. But such an OS may not exist on a computer. You have to use compatibility modes or different emulators.
Instructions
Step 1
Before starting DOS mode on a computer that does not have this operating system, consider installing real DOS on a separate machine. True, MS-DOS is now not sold anywhere, so you have to use a modern OS of this class — PTS-DOS or FreeDOS. These are very high quality operating systems with a high degree of compatibility with MS-DOS. True, individual programs in them may not start or work incorrectly, but there are quite a few of them (only a few percent).
Step 2
If your computer is running Windows 95 or Windows 98, on the computer shutdown menu, select the item corresponding to restart in MS-DOS emulation mode. In the same OS, you can select the appropriate mode even before booting, if you hold down the F8 key at this moment.
Step 3
To run a DOS program in Windows while multitasking, press the Start key, select Run from the menu, and then type command (in Windows 95, 98, or Me) or cmd (in Windows 2000 and later) without quotation marks. Then start the DOS program from the command line. Use the alt=»Image» and Enter keys to enable or disable full-screen mode, if desired. The DOS compatibility of this mode is rather low.
Step 4
On a Linux operating system, provided it is running on an x86 compatible processor, use the Dosemu software package to emulate DOS. It is good because it emulates only the DOS operating system itself, but not the computer’s processor. This allows for significant performance even on slow machines.
Step 5
For high-quality DOS emulation in both Linux and Windows running on computers with processors of any architecture, use the DOSBOX program. It is slower and requires more RAM as it emulates a processor.
Step 6
An even more resource-intensive way to emulate DOS is to use the Qemu cross-platform software package. It emulates an entire computer with a processor, BIOS, virtual hard disks, etc. Almost any OS can be run on top of it. After starting the emulator, install the PTS-DOS or FreeDOS operating system on it.
Существует много полезных программ, а также интересных игр под DOS. Могут ли они работать в новой Windows 10 (или 7, 8, 8.1)?
Вы задавали себе вопрос, какой у вас ПК, какую версию Windows он имеет, 32- или 64-битную разрядность? Если у вас компьютер 32-разрядной версии (именуемые x86 по историческим причинам), вы не должны иметь никаких проблем с запуском многих (но не всех) DOS программ. Но если вы используете 64-разрядную версию (x64), запуск программы DOS официально не поддерживается.
Некоторые DOS программы могут не запустится с текущей версии Windows. Как правило, это различного рода аппаратные утилиты, такие как defraggers и диагностические средства. Также могут не запуститься и обыкновенные старые игры, поскольку они могут использовать аппаратные возможности старой ОС и не работать в последних версиях Windows.
Если вы не знаете, какую версию Windows использует ваш компьютер, 32- или 64-разрядную, то сейчас самое время это узнать. В новых версиях Windows (все что выше XP, это Windows 7, 8, 8.1, 10) щелкните по кнопке Пуск правой кнопкой мыши и выберите пункт Система.
Или наберите в поиске или выберите сразу пункт Параметры->Система->О системе
Удостоверьтесь, что вы имеете 64-разрядную версию Windows
Если вы используете 32-разрядную версию, вы можете запустить программу DOS, просто выбрав соответствующий .com файл. Если вы это делаете впервые из Windows 7 и выше, вам, вероятно, будет предложено установить компонент под названием NTVDM; нажмите кнопку Установить.
Некоторые очень старые программы, могут не запуститься даже в Windows 7 x86.
Если программа не запускается, или если вы работаете в Windows 10 (7,8) x64, попробуйте запустить его в среде DOSBox. Эта простая, бесплатная программа работает с DOS в виртуальной машине, которая создает достаточно близкую эмуляцию старого компьютера.
Настроить DOSBox очень просто, существует один хитрый момент, который вы должны знать. Для того что бы в нем запустить нужную вам программу, вы должны ее сначала примонтировать. Точно также как вы монтируете образ диска, только папку с программой.
Делается это следующим образом:
Запустите программу DOSBox и выполните команду mount a c:\dosfiles
Но что бы каждый раз не выполнять одно и тоже, сделаем так, что бы указанный путь монтировался автоматически.
Для этого необходимо создать папку как можно ближе к корню реального диска или раздела, и дать ему краткое имя без пробелов и знаков препинания. Я рекомендую C: \ DOSfiles. Поместите ваши программы и файлы DOS в эту папку.
Затем, в поле поиска программ Windows (в меню Пуск) наберите DOSBox 0,74 Options (число зависит от версии). Кликните по нему, откроется довольно большой файл конфигурации в блокноте. Перейдите к нижней части файла. Вы увидите секцию [AutoExec], строчкой ниже пропишите mount a c:\dosfiles. Это именно тот путь, где у вас расположены ваши программы DOS, которые необходимо запустить. Сохраните файл.
Теперь, когда вы запустите DOSBox, он автоматически подключит диск C: с папкой \ DOSfiles как привод A :. Дальше вы работаете с этим диском A : точно также, как и с любым другим из под ДОС.
Загрузка
Get the Popular Science daily newsletter💡
Breakthroughs, discoveries, and DIY tips sent every weekday.
Before Windows, there was MS-DOS—that’s the Microsoft Disk Operating System, if you’re unfamiliar—a text-based, command-line interface operating system that was the way into managing files and launching applications on non-Apple computers.
It was a lot more sparse and a lot less user-friendly than the operating systems we use today, but if you’re old enough to remember it, you’ll know it was cutting edge for the time—and still has some charm left today.
While modern computers are vastly more powerful than the ones from the heyday of MS-DOS, you can still run the old operating system—all you need is the right program, and there are a few different options to pick from.
Maybe you want to run some classic applications or games of the past, or maybe you’re interested in this part of computer history, or maybe you’re just a little nostalgic—but whatever your reasons, here’s how to run MS-DOS today on Windows or macOS.
How to set up DOSBox-X
As we’ve said, there are various different ways to get MS-DOS running on modern systems, to suit different setups and requirements, and we can’t cover them all here. For this guide, we’ll concentrate on the DOSBox-X emulator: It’s free to use, it’s simple to set up, and it’s a good starting point for most people.
From the DOSBox-X homepage, download the version of the emulator to match your system—Windows, macOS, or Linux. Run the downloaded file, and when the setup process has completed, you’ll be left with a standalone program you can run to launch a window running an MS-DOS environment.
Don’t panic if you’ve never used DOS before and find the interface a little daunting: You can type “HELP” then hit Enter to see a list of available commands, or “INTRO” and then Enter to get a brief guided tour of DOSBox-X, and an introduction to its features. There’s also a comprehensive wiki file online, which you can find here.
To begin with, you’re not going to be able to see any files on your computer. To fix this, type “MOUNT C” then a space, then a folder on your computer, then hit Enter. So, typing “MOUNT C D:\GAMES” followed by Enter would create a C drive in DOSBox-X that points towards the D:\Games folder on your actual system.
You would then type “C:” and Enter to switch to the drive, and “DIR” and Enter to see its contents. You can move any files you want DOSBox-X to see into this folder in Windows or macOS—so any games or applications you want to be able to access in the MS-DOS environment, for example.
How to use DOSBox-X
If you’ve used MS-DOS before then you’ll be right at home right away—if you haven’t, you’ll need to brush up on the commands (we’ve already mentioned a couple of them). You can find plenty of help with this online, including in the official DOSBox-X wiki.
To really make the most of MS-DOS, you need to install some software. Getting this up and running is as simple as moving the necessary executables into the folder you mounted earlier, and then typing out the name of the app or game. Alternatively, open the Main menu and click Quick launch program to find an executable that way.
As with many emulators, DOSBox-X itself is legal, but technically speaking you should have licenses for the software you run, if it’s not freeware. We’ll leave that to your own conscience—but considering all these programs have long since ceased to be developed, it’s unlikely that you’re going to find a legal team getting in touch with you.
You’ll find vast libraries of MS-DOS games online, including the one at the Internet Archive. There are titles here including Doom, Microsoft Flight Simulator, The Secret of Monkey Island, Prince of Persia, SimCity, and many others you might remember from the 1980s and 1990s when systems were running MS-DOS. There’s lots of productivity software available on the web too, including the classic word processor WordStar.
Dig deeper into the DOSBox-X menus and the configuration files that come along with the program, and you’ll find plenty more options to play around with—such as settings for how sound and video are handled inside the emulator. Again, there’s plenty of assistance available in the official wiki if you get stuck.
More deals, reviews, and buying guides
The PopSci team has tested hundreds of products and spent thousands of hours trying to find the best gear and gadgets you can buy.