What command can be used in the start menu to enter the command prompt window?

青灯夜游
Release: 2023-01-05 16:11:52
Original
7237 people have browsed it

Can be achieved through the "Programs → Accessories → Command Prompt" command in the start menu. Specific method: First click the "Start" button to open the Start menu; then click "Programs" - "Accessories" - "Command Prompt". You can also enter the command window by entering "cmd" in the "Search Programs and Files" box in the "Start" menu and pressing Enter.

What command can be used in the start menu to enter the command prompt window?

The operating environment of this tutorial: Windows 7 system, Dell G3 computer.

I often encounter some beginners who do not have basic knowledge of the operating system, so they learn a certain programming language. As a result, all kinds of small problems got in the way, and questions were asked here and there. For example, the learning materials provided a command line, but he used it in an interactive environment; the learning materials provided program statements, and he went to the command line to execute them. Some people even gave up studying because of this.

Learning the command line or Shell is the basic prerequisite for learning a programming language. In fact, learning this part of knowledge does not take much time. Here is a relevant introduction to the basic knowledge of the Windows system command line and Linux system shell.

1. Start the Windows system command prompt

1. Under Windows system, the method to start the command line is very simple.

In WinXP system, just "Start" - "Run", then enter cmd in the dialog box and click "OK", a window with a black background will appear. As shown in the picture:




##2. Pass "Start" - "All Programs" - "Accessories" - "Command Prompt", open the above command line window.


3. Under Win7 system, in the "Search Programs and Files" box in the start menu, enter cmd and press Enter. Of course, there is also a "Command Prompt" command in the Win7 start menu, allowing you to start the command prompt.

2. Commonly used commands and usage in cmd

1. There are three main types of commands used in cmd: built-in commands in cmd , The system automatically searches for command files and executable files in the current path, etc., and the non-system automatically searches for command files and executable files in the current path or the current path. The first two commands can be started or run directly by entering the command, while the third command must bring the path to the command file or executable file to run. For example:


The cd command here is a built-in command. If you want to run a mytest.exe executable file, and this file is stored in d:\python directory, you need to enter d:\python\mytest.exe at the command prompt to execute it, otherwise, the following prompt will appear:

2. cd command

is used to switch the current working directory. You can enter one level at a time, or you can enter multiple levels at once. In the figure below, cd lx\python is used to enter two directories at once. Of course, you can also use the cd command twice to enter the previous directory. Such as cd lx, cd python.


The cd command can also switch to the upper directory or root directory.

cd \ is used to return to the root directory;

cd .. is used to return to the superior directory of the current directory.

3. dir command

Used to list the files and directories in the current directory or the specified directory

When the dir command does not add any parameters, it will list the files and directories in the current directory. Content.

When the dir command is added to other directory paths, the contents of the specified directory will be listed. As shown below:

#In some programming languages ​​that have an interactive running environment, you can start it by command. For example, python:

# Then, you can enter the program statements of the python language to learn the python language.

Recommended tutorial: "

windows tutorial"

The above is the detailed content of What command can be used in the start menu to enter the command prompt window?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!