search
HomeOperation and MaintenanceWindows Operation and MaintenanceWhat command can be used in the start menu to enter the command prompt window?

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!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools