Ping IP (or domain name) Sends the default size of 32 bytes to the other party host, parameter: “- L [space] packet size”; “- n Send data number”; “- T” means always ping.

PING -T -L 65550 IP death PING (sending a document greater than 64K) and has been pinging ping as death)

IPConfig (WiniPCFG) is used for Windows NT and XP (Windows 95 98) View local IP addresses, IPConfig use parameter “/ all” to display all configuration information

TLIST -T Displays the process (for the system’s additional tool, the default is not installed, in the Support / Tools folder of the installation directory)

The KILL -F process name is added to the -f parameter to force an end (for the system’s additional tool, the default is not installed, in the Support / Tools folder of the installation directory)

After the DEL -F file name is added to the -f parameter, you can delete read-only files, / ar, / AH, / AS, / AA, indicate deletion read-only, hidden, system, archive file, / ar, / ah, / as, / AA indicates that deletes files other than read only read, hidden, system, and archive. For example, “DEL / AR *. *” Means deleting all read only files in the current directory, “del / a-s *. *” Means all files other than the current directory removed system files.

Del / s / q directory or use: RMDIR / S / Q Directory / S Delete All subdirectories and files in the directory. The system confirmation when using parameter / q can cancel the operation is deleted directly. (The two orders are the same)

Move Path To move the file name to store the path of the mobile file to move the file name mobile file, use the parameters / y to cancel the prompt of the mobile directory there is a prompt to the same file directly override

FC One.txt Two.txt> 3st.txt Compares two files and outputs different points to 3st.txt files, “>” and “>>” are redirected commands

AT ID number opens a registered plan task

AT / Delete Stop all planned tasks, use parameters / yes, do not need to confirm, stop

AT ID number / delete stops a registered plan task

AT View All Plan Tasks

AT IP Time program name (or a command) / r Run each program for a certain time and restart your computer

Finger UserName @Host See what users have recently logged in

Telnet IP port far and landing server, the default port is 23

Open IP is connected to IP (commands after Telnet login)

Telnet directly typing Telnet directly to Telnet

COPY Path File Name 1 Path File Name 2 / Y Copy File 1 to the specified directory as file 2, use parameters / y to cancel the confirmation you have to override a existing directory file

Copy C: Srv.exe ipadmin $ Copy Local C: Srv.exe to the other party’s admin

Copy 1st.jpg / B + 2st.txt / a 3st.jpg to generate the 2st.txt content to 1st.jpg to generate a 3st.jpg new file, Note: 2st.txt file header is empty three rows, parameters: / B refers to binary files, / a refers to ASCLL format files

Copy ipadmin $ svv.exe c: or: copyipadmin $ *. * Copy the Srv.exe file (all files) to the local C:

Xcopy to copy the file or directory tree target address directory name copy file and directory tree, use parameter / y will not prompt the same file

Use parameter / e to copy the subdirectory in the directory to the destination address.

TFTP -I IP (using meat IP IP) Get Server.exe C: Server.exe, use meat machine IP) Get Server.exe, download “IP” server.exe to the target host C: Server.exe parameter: – i refers to the transfer of binary mode, such as transmitting an Exe file, if not add-I, transfer in ASCII mode (transfer text file mode)

After the TFTP -I other side IP PUT C: Server.exe logs in, upload local C: Server.exe to the host

The FTP IP port is used to upload files to the server or perform file operation, the default port is 21. BIN refers to the transfer of binary mode (executable file into); default is ASCII format transfer (text file)

Route Print displays the IP route, which will mainly display the network address network address, the subnet mask NetMask, the gateway gateway address, the interface address interface, and process the ARP cache. ARP is the meaning of the name resolution, which is responsible for analyzing an IP to a physics Sex MAC address. ARP -A will display all information

START program name or command / max or / min open a new window and maximize (minimize) run a program or command

MEM View CPU usage

Attrib file name (directory name) View the properties of a file (directory)

Attrib file name -A -R -S -H or + A + R + S + H Remove (Add) Archive, read-only, system, hidden attribute; use + is added as a property

DIR View file, parameter: / q Display file and directory belly system which user, / t: c Display file creation time, / t: a display file last accessed time, / t: W is last modified last time

DATE / T, TIME / T use this parameter, “Date / T”, “Time / T” will only display the current date and time without having to enter new dates and times

Set Specifies the Name of Environment Variables = To assign the character to the variable setting environment variable

Set shows all current environment variables

Set p (or other characters) shows all environment variables currently starting with characters P (or other characters)

PAUSE suspends batch program and showing: Please press any key to continue …

IF performs condition processing in the batch program (more instructions if commands and variables)

The Goto tab will guide the cmd.exe to the tag to the batch program (the label must be a row separately, and take a colon head, for example: “: start” tag)

Call path batch file name calls another batch program from the batch program (more instructions call /?)

For each file in a set of files, perform a particular command (more instructions for commands and variables)

Echo ON or OFF Turns an Echo, only using the Echo does not add parameters, display the current echo settings

Echo information shows information on the screen

Echo Information >> Pass.txt Save “Information” into the pass.txt file

Findstr “Hello” aa.txt looks for string Hello in aa.txt file

Find file name Find a file

Title title name Change the name of the CMD window title

Color color value sets CMD console foreground and background color; 0 = black, 1 = blue, 2 = green, 3 = light green, 4 = red, 5 = purple, 6 = yellow, 7 = white, 8 = gray, 9 = Light blue, a = light green, b = light green, c = light red, d = lavender, E = light yellow, f = bright white

The PROMPT name changes the display of the display of cmd.exe (putting C:, D: unified to: ENTSKY)

Ver displays version information under the DOS window

Winver pops up a window display version information (memory size, system version, patch version, computer name)

Format Disk / FS: Type Format Disk, Type: Fat, Fat32, NTFS, Example: Format D: / Fs: NTFS

MD directory name creation directory

Replace source file To replace files directory replacement files

Ren original file name new file name rename file name

Tree Displays a directory in a tree structure, and use parameter -f will list the file name in the first folder.

Type file name shows the content of the text file

More file name screen display output file

Doskey to lock the command = character

Doskey wants to unlock command = The lock command provided for DOS (edit the command line, recall the Win2K command, and create a macro). Such as: Lock Dir Command: Doskey Dir = Entsky (can not use doskey dir = dir); unlock: doskey dir =

Taskmgr calls up task manager

Chkdsk / f d: Check disk D and display status report; plus parameter / f and fix the error on disk

TLNTADMN TELNT Service ADMN, type TLNTADMN Select 3, select 8, change the Telnet service default port 23 for any other port

EXIT exits the cmd.exe program or now, with parameter / b is exiting the current batch script instead of cmd.exe

The file name of the Path path executable is a path to the executable.

CMD launches a Win2K command to explain the window.Parameters: / EFF, / EN Close, turn on command extension;

RegeDit / e Registry file name exported registry

CACLS file name parameters Display or modify file access control list (ACL) – for NTFS format.Parameters: / d User Name: Set the reject a user access; / p username: Perm replacement specified user access (/ g): perm gives the specified user access; PERM can be: n no, R read,W Write, C Change (Writing), F Complete Control; Example: CACLS D: EST.TXT / D PUB Set D: Est.txt Reject Pub User Access.

CACLS file name View file access User Permissions list

REM text content Add annotations to batch files

Netsh View or change local network configuration

Related Posts