How to Run EXE Files in Cmd

Techwalla may earn compensation through affiliate links in this story. Learn more about our affiliate and product review process here.

The Windows command line utility (cmd) provides you with the old MS DOS command line that was used with older computers. The command line is still used by some network and system administrators to quickly type commands and execute utilities. You can execute EXE files from your Windows command line as long as you point the command line to the proper directory and type the proper EXE file name.


Step 1

Click the Windows "Start" button and enter "cmd" into the text box. Press "Enter" to open the command line.

Video of the Day

Step 2

Type "cd " to point the command line to the "C:" root directory. Now, type "cd directory" into the command line and press "Enter" where "directory" is the location of your EXE file. For instance, if you want to execute a file named "myexe.exe" in the "myfolder" directory, type "cd myfolder."



Step 3

Type "exefile.exe" and press "Enter." Replace "exefile.exe" with your own EXE file. The command line utility executes the file. If the executable file opens a window, then a window is opened. You can use this type of file execution for any executable file on your computer.




Report an Issue

screenshot of the current page

Screenshot loading...