May 23, 2021 DOS Command learning manual
del /S/Q directory or use: rmdir /s /Q directory /S to delete all subdirectts and files in the directory. T he system acknowledgement is deleted directly when the deletion operation can be cancelled using parameters/Q at the same time. ( Two commands work the same)
Move disk character/path to move the file name Store the path to move the file after moving the file name Move the file, with parameter /y will cancel the confirmation that the mobile directory exists the same file prompt directly overwritten
fc one.txt two.txt and 3st.txt compare two files and output the differences to the 3st.txt s file, and ""
at id To open a scheduled task that is registered
at/delete stops all scheduled tasks, and stops directly without confirmation with parameter/yes
At id /delete stops a registered schedule task
at View all scheduled tasks
The name of the program (or a command) /r runs one of the other programs at a certain time and restarts the computer
Finger username @host see which users have recently signed in
telnet ip port Far and log on server, default port is 23
Open ip is connected to IP (a command after telnet log-in)
Telnet Type telnet directly on this machine will enter the telnet of the machine
Copy path/file name1 path/file name2/y Copy file 1 to the specified directory for file 2, with parameter/y at the same time unsubfile you want to rewrite an existing directory file
copy c: srv.exe . ..exe
cppy 1st.jpg/b-2st.txt/a 3st.jpg hides the contents of 2st.txt into 1st.jpg to generate 3st.jpg new files, Note: 2st.txt file header to empty three rows, parameters: /b refers to binary files, / a refers to ASCLL format files
copy \\ip\***$\svv.exe c:\ O r: copy...copy/i$..copy the srv.exe files (all files) shared by the other party, i$, to local C:
xcopy to copy the file or directory tree destination address,directory name Copy files and tree, with parameter /Y will not prompt to overwrite the same file
tftp - i own IP (using meat machine as a springboard when using meat machine IP) get server.exe c:\server.exe after landing, the "IP" server.exe downloaded to the target host c:\server.exe parameter: -i refers to the transmission in binary mode, such as when transferring exe files, if not - i, in ASCII mode (transfer text file mode).
tftp -i the other side IP put c: .exe, upload the local c:/server .exe host
The ftp ip port is used to upload files to the server or perform file operations, with the default port being 21. b in refers to binary transfer (executable file in);
Route print displays IP routing, which will mainly show network address Network addres, subnet mask Netmask, gateway address Gateway addres, and interface address Interface
arp view and process the ARP cache, which means name resolution and is responsible for parsing an IP into a physical MAC address. a rp -a will show the full information
Start program name or command /max or/min Open a new window and maximize (minimize) the operation of a program or command
mem to see cpu usage
Attrib file name (directory name) View the properties of a file (directory).
The attrib file name -A-R-S-H, or the archive, read-only, system, hidden property of a file is removed (added), and added as a property with a plus
dir View file, parameter: /Q display file and directory belong to which user of the system, /T:C show file creation time, /T:A show file last access time, /T:W last modified time
Date /t, time /t Use this parameter to say "DATE/T," "TIME/T" to display only the current date and time, without having to enter a new date and time
set specifies the name of the environment variable , the character to be assigned to the variable Set the environment variable
set shows all the current environment variables
set p (or other characters) shows all environment variables that currently begin with character p (or other characters).
Pause pauses the batch program and shows: Press any key to continue....
if perform conditional processing in the batch program (see if commands and variables for more information)
Goto tags direct cmd.exe to labeled lines in a batch program (labels must be on a separate line and start with a colon, e.g.: ":start" label)
Call path/batch file name Call another batch program from the batch program (see call /?for more information)
for a specific command for each file in a set of files (see for commands and variables for more information)
Echo on or off echo, showing the current echo settings only without parameters
Echo information Displays the information on the screen
Echo Information . . . pass .txt "Information" to the pass .txt file
Findstr "Hello" aa .txt look for .txt hello in the aa file
Find file name Find a file
Title Title Name Change cmD window title name
Color Color Value Set 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-light purple, E-light yellow, F-light white
prompt name Change the command .exe the display of the cmd system (change the command prompt of C: , D: uniform to: EntSky )