Execution of the operation to close the Windows command interpreter window - cmd.exe or "command line" - depends on many parameters, some of which will be discussed below.
Instructions
Step 1
Call the main menu of the Microsoft Windows operating system by pressing the "Start" key and go to the "Run" item to launch the "Command Prompt" tool.
Step 2
Enter the cmd value in the "Open" field and click the OK button to confirm the execution of the launch command, or invoke the context menu of the cmd element by right-clicking to launch it in the "As administrator" mode.
Step 3
Specify the command "Run as administrator" and press the function key Enter to confirm the execution of the command.
An alternative way to launch the "Command Line" tool is to enter the value cmd or "command line" in the "Find" test field of the main "Start" menu and click the "Find" button.
Step 4
Enter exit in the Command Prompt text box and press the Enter softkey to exit the Command Prompt tool.
Step 5
Click the "x" icon in the upper right corner of the application window or press the Alt + F4 function keys at the same time.
Step 6
Enter value
@echo off
start program_name.exe
exit
to execute the operation of launching the selected program from the command line by closing the open window of the "Command Line" tool, or use the option
start program_name.exe | exit.
Step 7
Use the following command syntax to execute the operation to start the selected program and then exit: cmd / c command or enter the value cmd /? into the command line text box for more information.
Step 8
Use the following command to change the command line launch options:
cmd / a | / u / q / d / e: on / f: on / v: on / s / k command, where:
- / a - output the results in ANSI format;
- / u - output the results in Unicode format;
- / q - prohibit displaying commands on the screen;
- / d - prohibit execution of Autorun commands;
- / e: on - extended command processing;
- / f: on - defining characters for the end of the folder or file name;
- / v: on - extended processing of environment variables;
- / s - change command line parameters;
- / k - execute a command while saving the command line.