Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create a new cmd.exe window from within another cmd.exe prompt

People also ask

How do I open a second cmd window?

Click Start, type cmd, and press Enter to open a command prompt window. In the Windows taskbar, right-click the command prompt window icon and select Command Prompt. A second command prompt window is opened.

Can you run an EXE from cmd?

Type "start [filename.exe]" into Command Prompt, replacing "filename" with the name of your selected file. Replace "[filename.exe]" with your program's name. This allows you to run your program from the file path.

Is cmd.exe the same as Command Prompt?

Windows Command Prompt (also known as the command line, cmd.exe or simply cmd) is a command shell based on the MS-DOS operating system from the 1980s that enables a user to interact directly with the operating system.


I think this works:

start cmd.exe

Here is the code you need:

start cmd.exe @cmd /k "Command"

Simply type start in the command prompt:

start

This will open up new cmd windows.


start cmd.exe 

opens a separate window

start file.cmd 

opens the batch file and executes it in another command prompt