DOS- command -Windows: IO command

ylbtech-DOS- command -Windows: IO command

 

1. Back to top
1.1、
del / S / Q or directory with: rmdir / s / Q directory / S delete the directory and all subdirectories and files in the directory. At the same time using the parameter / Q cancel the delete operation of the system directly confirm the deletion. (The same two command role) 
the Move letter \ path \ filename stored path to move files you want to move \ move after move the file filename, parameter / the y-canceled prompted to confirm the presence of the same file directory of moving directly covered 
fc one two.txt .txt > 3st.txt compare two files and the output difference is to 3st.txt file, " > " and " >> " redirect command 
at id number registered to open a scheduled task 
at / delete stop all scheduled tasks, with the parameter / yes you do not need to confirm directly stop 
at id number / the Delete stop a scheduled task has been registered 
at view all scheduled tasks 
at \\ ip time program name (or a command) / r run a program at some other time and restart your computer 
finger username @host which users log in to view the last 
telnet ip port far and landed server, the default port is 23 
Open ip connection to IP (telnet case of an order after landing)
telnet on this machine simply type telnet will enter the machine's telnet 
Copy path \ filename 1 path \ filename 2 / y copy a file 1 to the specified directory for the file 2, using parameter / the y-you simultaneously cancel sure you want to overwrite a parts of the existing catalog file 
copy c: \ srv.exe \\ ip \ admin $ copy local c: \ srv.exe to each other's ADMIN 
1st.jpg cppy /b+2st.txt/a 3st.jpg of the 2st.txt hiding the content generated 3st.jpg 1st.jpg new file Note: 2st.txt three-row header to be empty, the parameter: / b means binary, / a refers to file format ASCLL 
copy \\ ip \ admin $ \ svv .exe c: \ or: copy \\ ip \ ADMIN $ \ * *. copy srv.exe files (all files) in the other admini $ share to the local C: 
xcopy to copy a file or directory tree destination address \ directory name copy files and directory trees, with parameters / the Y-cover the same file will not prompt 
the TFTP -i own IP (when using this as a springboard meat machine meat machine IP) GET server.exe c: after the \ server.exe landing, the " IP " the server.exe downloaded to the target host c: \ server.exe parameters: -i refers to the time in binary mode transmission, such as transmission exe file which, if not -i places ASCII mode (text file transfer mode) to transmit 
the TFTP - i other IP put c: \ server.exe after landing, upload local c: \ server.exe to host 
ftp ip port for uploading files to a server or file operation, the default port is 21. It refers to transfer binary bin (executable file into); default transport format ASCII (text file) 
route Print shows IP routing network addresses the primary display Network addres, Netmask subnet mask, gateway address Gateway addres, the interface address Interface 
arp view and manipulate the ARP cache, ARP name resolution is the meaning of IP responsible for a MAC address resolves to a physical nature. ARP - A to show all the information 
start command or program name / max or / min to open a new window and maximize (minimize) run a program or command 
mem view cpu usage 
attrib file name (directory name) to view a document (directory) attribute 
attrib filename -A -R -S -H or R & lt + S + a + + H remove the (added) archive of a file, read-only, system, hidden attribute; + is used to add a property 
dir view the file, parameters: / Q display files and directories to which the user belongs systems, / T: C display the file creation time, / T: A display file was last accessed time, / T: W was last modified 
date/ t, time / t use this parameter " DATE / T " , " the TIME / T " will only display the current date and time, instead of entering a new date and time to 
 set the specified environment variable name = to assign character set environment variables given variables 
 set displays all current environment variables 
 set p (or other characters) shows all the current environment variables character p (or other characters) at the beginning of the 
pause pause batch program, and shows: press any key to continue .... 
if performed in a batch program processing conditions (for more explanation see the if command and variable) 
 GOTO label cmd.exe batch program directed to the row with the label (a label on a line, and beginning with a colon, for example: " : Start " label) 
call path \ batch file called from another batch program batch program (see further instructions call /? ) 
 for the implementation of a specific command to a set of files for each file (more instructions see for commands and variables) 
echo ON or off to open or close echo, only the echo without parameters displays the current echo setting 
information echo information is displayed on the screen
echo information  >> pass.txt will" information " to save the file to pass.txt 
findstr " the Hello " aa.txt find the string hello in aa.txt file 
find file name find a file 
title to change the name of the title CMD window title name 
color value color console cmd foreground and background colors; 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 light, C = pink, D = purple, E = yellow, F = white 
prompt cmd.exe change the name displayed in the command prompt (the C: \, D: \ uniform change is: EntSky \)
1.2、
ver DOS window displayed in the version information 
winver a pop-up window displays the version information (memory size, system version, patch version, computer name) 
the format letter / FS: format the disk type, type: FAT, FAT32, NTFS, Example: Format D: / FS: NTFS 
md directory name to create a directory 
replace the source file to replace the file directory to replace the file 
ren original file name new file name to rename the file name of the 
tree displays the directory tree structure, parameter - f lists of files the folder name 
type the file name displays the contents of a text file 
more filename displays output one screen file 
doskey be locked command = character 
doskey to unlock command = to DOS provided a lock command (edit command line, recall win2k command, and create macro). Such as: Lock dir command: doskey dir = entsky (not used doskey dir = dir); unlock: Doskey dir =  
taskmgr bring up the Task Manager 
CHKDSK / the FD: check the disk D and display a status report; add parameter / F and repair disk error 
tlntadmn telnt service admn, select the type tlntadmn 3, then select 8, you can change the default telnet service port 23 as any other port 
exit to exit the program or are currently cmd.exe, parameter /B is to exit the current batch script instead of cmd.exe 
path path \ executable file called an executable file to set a path. 
win2K cmd to start a command interpreter window. Parameters: / eff, / EN closed, open the command extensions; more details see my cmd /?  
Regedit / S registry file name into the registry; parameter / S refers to the quiet mode to import, without any prompts; 
regedit / E registry file export registry name 
cacls filename parameter to display or modify file access control list (ACL) - the time for the NTFS format. Parameters: / D Username: deny a user access settings; / P Username: Replace specified user's access rights perm; / G Username: perm imparting specified user access rights; Perm can be: N None, R read, W write, C change (write), F full control; Example: cacls D: \ test.txt / D pub setting d: \ test.txt user access denied pub. 
Access user cacls file name to view file permissions list 
REM add text annotations in a batch file 
netsh view or change the local network configuration
2、
2. Return to top
 
3. Back to top
 
4. Top
 
5. Top
 
 
6. Back to top
 
warn Author: ylbtech
Source: http://ylbtech.cnblogs.com/
This article belongs to the author and blog Park total, welcome to reprint, but without the author's consent declared by this section must be retained, and given the original connection in the apparent position of the article page, otherwise reserves the right to pursue legal responsibilities.

Guess you like

Origin www.cnblogs.com/storebook/p/12622933.html