Here, basic knowledge on the Windows Command Prompt is briefly
This is not intended to be used for learning Windows Command Prompt.
For this purpose, consult an appropriate textbook or information on web pages.
The Command Prompt is an extention of the text-based operating system,
MS-DOS, which is a predecessor of Windows.
It is used to execute old promgrams, or the numerical calculation programs with
Thus, many of the instructions here are common with the MS-DOS, and may not be
useful for the users familiar with the MS-DOS.
Starting a Command Prompt
Starting a Command Prompt with Current Directory Set to the Folder Open
- On Windows Vista & later, a context menu will appear by right-clicking a folder
(or a folder pane) while pressing [SHIFT] key, and then click "Open
Command Window Here".
[NO "Command Window" found in the SHIFT+right-click context menu !]
- On recent builds of Window 10, "Command Window"
may be replaced with "PowerShell Window".
Do not worry. Open it anyway, then type
cmd [enter] to invoke
the Command Interpreter.
Coresponding to "Folder" on Windows.
The directory currently in operation is called
"Current Directory", and a file name specified without its
location is assumed to be present in the current directory.
To execute an executable file, it must be reside in the current directory
or in the directories specified by the "path".
To run numerical calculations in different directories, one may copy the
executable files as many times as required, but it is wise to set the
A computer-wide path can be set from the [Environment Variables]
in the [Details] tab of the [My Computer]'s [Property].
Handling Files and Directories
Major file and directory handling commands are summarized below.
Before issuing a command, check and understand the details
by using the
help command etc.
|Display files and/or directories |
|Copy files or directories |
|Move files or directories |
|Rename files |
|Remove files or directories |
|Create a directory |
|Remove a directory |
|Change the current directory |
The letters * and ? are used to specify multiple files in commands above.
Use with sufficient understanding.