Window command-line switch command

Windows command-line switch directory

Special Note: do not need to switch to the other letter command cd

1. Switch to the root directory of C

After opening the terminal cmd, enter cd C:\(be sure to add back the backslash)

2. Switch to the directory C plate

After opening the terminal cmd, input cd C:\dir1(switch to the C disk directory dir1)

3. Switch to the other root directory

After opening the terminal cmd, input D:(no need to add cd, must not add backslash)

4. Switch to another directory plate

After opening the terminal cmd, to switch to the root directory, and then using the cd to subdirectories

Under the common DOS commands

  • dir (directory): Lists the current file and directory files folder

  • md (make directory): Create a directory

  • rd (remove directory): Delete Contents

  • cd (change directory): Enter the specified directory

  • cd..: Return to the parent directory

  • cd\: Return to the root directory

  • del:Delete Files

  • exit: Exit dos command line

  • cls (clear screen): Clear screen

Other commands

C:\Users\libin>help
For more information about a command, type HELP command name
ASSOC Displays or modifies file extension associations.
ATTRIB Display or change file attributes.
BREAK Sets or clears extended CTRL + C checking.
BCDEDIT The startup database attributes to control the boot loader.
CACLS Display or modify file access control list (ACL).
CALL Calls one batch program from another.
CD Display the name of the current directory or change it.
CHCP Display or set the active code page.
CHDIR Display the name of the current directory or change it.
CHKDSK Checks a disk and displays a status report.
CHKNTFS Displays or modifies the start time of the disk check.
CLS Clear the screen.
CMD Open another Windows command interpreter window.
COLOR Set the default console foreground and background colors.
COMP Compare two files or sets of content.
COMPACT Displays or alters the compression of files on NTFS partitions.
CONVERT Converting FAT volumes to NTFS. You can not convert the current drive.
COPY Copies one file to another location.
DATE Displays or sets the date.
DEL Delete at least one file.
DIR Display a list of files and subdirectories.
DISKPART Display or configure disk partitions property.
DOSKEY Edit the command line, Windows command to withdraw and create macros.
DRIVERQUERY It displays the current status of the device driver and properties.
ECHO Display messages, or turns command echoing on or off.
ENDLOCAL Ends localization of environment changes in a batch file.
ERASE Delete one or more files.
EXIT Quits the CMD.EXE program (command interpreter).
FC Comparison of two documents or document sets and display two different therebetween.
FIND Search for a text string in a file or files.
FINDSTR Search string in multiple files.
FOR Run a specified command for each file in a set of files.
FORMAT Formatting a disk for use with Windows.
FSUTIL Display system properties or profiles.
FTYPE Displays or modifies file types used in file extension association in.
GOTO The Windows command interpreter directed to a batch program to a labeled line.
GPRESULT Group Policy display information about the computer or user.
GRAFTABL In the Windows graphics mode to display the extended character set.
HELP Windows Help provides information command.
ICACLS Display, modify, backup, or restore files and directories ACL.
IF Conditional processing operation performed in a batch program.
LABEL Create, change, or delete the volume label of a disk.
MD Create a directory.
MKDIR Create a directory.
MKLINK Create a symbolic link and a hard link
MODE to configure system devices.
MORE Displays output one screen.
MOVE One or more files from one directory to another.
OPENFILES Show remote users to share files and open files.
PATH Display or set the search path for the executable file.
PAUSE Pause a batch file processing and display messages.
POPD Restore a saved value by PUSHD the current directory.
PRINT Print a text file.
PROMPT Change the Windows command prompt.
PUSHD Save the current directory, then change it.
RD Delete the directory.
RECOVER Recovers readable information from damaged or defective disk in.
REM Records in a batch file or CONFIG.SYS comments (annotations).
REN Rename the file.
RENAME Rename the file.
REPLACE Replace the file.
RMDIR Delete the directory.
ROBOCOPY Copy files and directory trees advanced utility that
SET displays, sets, or removes Windows environment variables.
SETLOCAL Environmental changes localized to start a batch file.
SC Display or configure the service (daemon).
SCHTASKS Scheduled to run commands and programs on a computer.
SHIFT Adjusting the position of replaceable batch file parameters.
SHUTDOWN Allows locally or remotely shut down the computer properly.
SORT The input order.
START Start a separate window to run a specified program or command.
SUBST The path associated with a drive letter.
SYSTEMINFO Display specific properties and configuration of the computer.
TASKLIST Displays all tasks currently running, including services.
TASKKILL Suspend or stop a running process or application.
TIME Display or set the system time.
TITLE Set the window title for a CMD.EXE session.
TREE Displays the directory structure of the driver or the path graphically.
TYPE Display the contents of a text file.
VER Displays the Windows version.
VERIFY Tell Windows whether to verify to make sure that the correct file is written to disk.
VOL Displays a disk volume label and serial number.
XCOPY Copy files and directory trees.
WMIC WMI information is displayed in an interactive command shell.

For more information about the tool, see the online help for the command-line reference.

Guess you like

Origin www.cnblogs.com/liuzhenbo/p/11021621.html
Recommended