How To Run A Program In DOS

Table of contents:

How To Run A Program In DOS
How To Run A Program In DOS

Video: How To Run A Program In DOS

Video: How To Run A Program In DOS
Video: How to Build / Compile and Run a C Program in Command Prompt ( cmd ) on Windows 10 2024, December
Anonim

In modern versions of Windows, there is no DOS (Disk Operating System) operating system, but there is a special component that simulates the execution of some DOS commands. This component is called a command line terminal emulator and its capabilities are enough to run programs, but whether they can work in the environment of modern operating systems depends on the specific program.

How to run a program in DOS
How to run a program in DOS

Instructions

Step 1

Open a command line terminal. To do this, you can use the standard Windows program launch dialog, which opens by selecting the Run command in the main menu on the Start button. If your version of the operating system does not have this command in the main menu, then use the win + r hotkey combination. In the launch dialog enter the cmd command and click on the "OK" button.

Step 2

As a result of the previous step, the command line terminal will launch, which is a separate window with white letters on a black background. It cannot be expanded to full screen, there is no usual menu with a set of functions at the top of it, and Windows hotkeys do not work in it either. However, there are several commands in the right-click context menu on a black background. In particular, there is an insert command, which can be useful in the next step.

Step 3

Enter the full address of the executable file of the program you want to run on the command line. It is not always convenient to do this manually, so you can use the copy and paste operations. You can copy the full path, for example, in Windows Explorer - go to the folder containing the file you need, then select and copy (ctrl + c) the path in the address bar of the file manager. After that, switch back to the command line terminal, right-click anywhere and select the paste operation from the context menu. Then add the name of the executable file separated by a backslash ().

Step 4

If the program you need has a shortcut in the operating system, then instead of Explorer, the full address of the file can be copied in its properties. True, the value copied into the object field will need to be stripped of the quotes at the beginning and end of the line before being pasted into the command line.

Step 5

Press enter and the DOS emulator will launch the program you want.

Recommended: