Windows CMD Command classification

Source: Internet
Author: User


BCDEDIT set the properties in the startup database to control the boot load.
Break sets or clears the extended CTRL + C check.
CHCP Displays or sets the number of active code pages.
GRAFTABL enable Windows to display the extended character set in graphics mode.
MODE configures the system device.
WMIC displays WMI information in an interactive command shell.

ASSOC Displays or modifies file name extension associations.
SUBST associates the drive letter with the path.
FTYPE displays or modifies the file types that are associated with the file name extension.

---------------------------------------

GPRESULT Displays Group Policy information for the machine or user.
OPENFILES displays files opened by remote users for file sharing.

TASKLIST displays all currently running tasks that include the service.
TASKKILL terminates a running process or application.
SHUTDOWN allow the machine to shut down properly locally or remotely.

Print prints a text file.
SC Display or Configuration service (background processing).

---------------------------------------

Driverquery Displays the current device driver status and properties.
CACLS displays or modifies the Access Control List (ACL) of the file.
ICACLS displays, modifies, backs up, or restores ACLs for files and directories.

CHKDSK checks the disk and displays the status report.
CHKNTFS Displays or modifies the startup time disk check.
Compact displays or changes the compression of files on NTFS partitions.
Convert converts a FAT volume to NTFS. You cannot convert the current drive.
DISKPART displays or configures disk partition properties.
Format formats the disk for use with Windows.
FSUTIL displays or configures the properties of the file system.
Label creates, changes, or deletes a disk's volume label.
The RECOVER recovers readable information from the damaged disk.
VERIFY tells Windows to verify that the file is written to disk correctly.
VOL Displays the disk volume label and serial number.

DISKCOMP compares the contents of two floppy disks.
DISKCOPY Copy the contents of one floppy disk to another.

---------------------------------------
Call calls this one from another batch program.
GOTO points The Windows command interpreter to a labeled row in the batch program.
SETLOCAL began to change the localization of the environment with batch files.
Endlocal to end localization of environment changes in batch files.

Pause stops processing of the batch file and displays information.
Exit CMD. EXE Program (command interpreter).

For each file in a set of files, run a specified command.
IF a conditional process is performed in a batch program.

SHIFT adjusts the position of replaceable parameters in the batch file.

POPD restores the previous value of the current directory saved by PUSHD.
PUSHD Save the current directory and make changes to it.

Find searches one or more files for a text string.
FINDSTR searches for strings in multiple files.
Sort sorts the inputs.

Set to display, set, or remove Windows environment variables.
REM records batch files or CONFIG. The comment in SYS.

---------------------------------------

CMD opens another Windows command interpreter window.
DOSKEY Edit the command line, invoke the Windows command, and create a macro.

Path displays or sets the search path for the executable file.
START opens a separate window to run the specified program or command.
SCHTASKS schedule commands and programs to run on a single computer as scheduled.

CLS clears the screen.
Color sets the default console foreground and background color.
The TITLE sets CMD. The window caption of the EXE session.
PROMPT Change Windows command prompt.


SYSTEMINFO displays the specific properties and configuration of the machine.
VER shows the version of Windows.
Time displays or sets the system times.
Date Displays or sets dates.

More display output per screen.
echo Displays the message, or turns the command back on or off.


---------------------------------------

ATTRIB Display or change file properties.

The CD displays the name of the current directory or changes it.
CHDIR displays the name of the current directory or changes it.
DIR displays the files and subdirectories in a directory.
Tree displays the directory structure of the initiator or path graphically.

MD to create a directory.
MKDIR Create a directory.
MKLINK creating Symbolic links and hard links

Copy copies at least one of the files to another location.
XCOPY copies files and directory trees.
ROBOCOPY advanced utilities for copying files and directory trees

Move moves one or more files from one directory to another.
RD Delete directory.
RMDIR Delete the directory.

REN renames the file.
RENAME Rename the file.

DEL deletes at least one file.
ERASE Delete one or more files.

Replace replaces the file.

TYPE Displays the contents of the text file.

COMP compares the contents of two or two sets of files.
FC compares two files or two sets of files and displays the differences between them.

==============

Windows Bat Advanced Usage examples

Http://stackoverflow.com/questions/5837418/how-do-you-get-the-string-length-in-a-batch-file

Windows CMD Command classification

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.