1 MD Build Folder
2 CD pointing to folder orientation
Cd.. Go to the top level folder
CD \ Back to root directory
3rd Delete Folder
4 dir View files in a folder
DIR/A viewing all files in a folder with hidden files
5 ren modify file, folder name can also modify file type ren
6 del can only delete files
del * * Delete all Files
Note: * and? As a wildcard character
* represents all characters, all digits
? Represents all characters, but represents only 1 bits
7 color change background and font color
8 Title Content Change window name
9 Shutdowm-s-T shutdown after 999,999 seconds
Shutdown-s-f-t 999 force off after 999 seconds
Shutdown-a shutdown (forced shutdown cannot be lifted)
Type View file contents
11 Create File Method 1:
Command:
echo string >[path \] File name
echo string >>[path \] File name
Note:> or >> redirect symbols
>: Overwrites the output of the preceding command to a file
>> function: Append the output of the preceding command to the file
12 Create File Method 2:
Copy con path file full name
You can edit content in multiple lines.
CTRL + Z Enter end write
13. Copying and moving files:
Copy: Copy [path] file Full name Destination path Note: folder is not copied
Move: Move [path] file Full name Destination path Note: will move
CLS Clear Screen
Ping 192.168.1.1 Times
Ping-t 192.168.1.1 has been ping,ctrl+c to terminate
16
ipconfig querying native IP information
Ipconfig/all Query native IP details
Ipconfig/flushdns cleaning the native DNS cache
NET User View username
NET user username "321" modify username password to 321
Woami View Current user name
19. Timer Shutdown:
Shutdown-s T-S
Cancel Timer:
Shutdown-a
Timed forced shutdown:
Shutdown-s-f-t sec
Timed Restart:
Shutdown-r [-f]-t seconds
Cancellation:
Shutdown-l = Logoff
22.ipconfig View NIC Basic information
Ipconfig/all View NIC All information
Ipconfig/flushdns clearing the DNS cache
Ping ip/domain name
PING-T ip/domain name has been ping,ctrl+c can be terminated
23. Modify file Properties:
1) Hidden files:
attrib +h directory name or full file name
Unhide:
Attrib-h directory name or full file name
2) set to system-level hidden files:
attrib +h +s directory name or full file name
Cancel:
Attrib-h-S directory name or full file name
24. Configure IP manually:
netsh int ip set address nic name static 10.1.1.1 255.255.255.0 [10.1.1.254 1]
To set up a dynamic get IP:
netsh int ip set address NIC name DHCP
Configure DNS manually:
netsh int ip set dnsservers nic name static 202.106.0.20
To set up dynamic get DNS:
netsh int ip set dnsservers nic name DHCP
25. Batch processing:
Extension:. bat
Role: Batch processing DOS commands, strictly from top to bottom execution of each command.
Create a method: Create a Notepad and modify the. bat extension to
Edit method: Right--edit
Batch Common commands:
1) Pause: Pause execution command
2) @echo off: It is recommended to write in the first line for masking echo.
That is, masking the command execution process.
3) echo. Empty line
4) Title string: set title
5) Set a variable that can be interacted with: set/p variable =
Call variable:% variable name%
6) goto AA into the AA block
7): AA defines AA blocks
8) Start Program or file
Win-dos Command Collation