Run cmd.exe at the Command Prompt

Q

Can I run cmd.exe program at the command prompt?

✍: FYIcenter.com

A

Yes, you can run cmd.exe program at the command prompt. Basically, you are starting a child command prompt at the parent command prompt.

You can use the "EXIT" command to terminate a command prompt. When the last command prompt is terminated, the command prompt window is closed. Try the following commands in a command prompt window:

C:\fyicenter>echo I am in the top prompt
I am in the top prompt

C:\fyicenter>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\fyicenter>echo I am in the child prompt
I am in the child prompt

C:\fyicenter>cmd
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\fyicenter>echo I am in the grand-child prompt
I am in the grand-child prompt

C:\fyicenter>exit

C:\fyicenter>echo I am back in the child prompt
I am back in the child prompt

C:\fyicenter>exit

C:\fyicenter>echo I am back in the top prompt
I am back in the top prompt

C:\fyicenter>

If you enter "exit" again, the top command prompt will be terminated. And the window will be closed.

 

Run cmd.exe Program with Options

Start cmd.exe Command Prompt

cmd.exe - Command Prompt Program

⇑⇑ Windows Batch File Tutorials

2017-12-05, 115👍, 0💬