May 23, 2021 DOS Command learning manual
ver displays version information under the DOS window
Winver pops up a window to display version information (memory size, system version, patch version, computer name)
Format disc / FS: Type Format disk, type: FAT, FAT32, NTFS, example: Format D: /FS:NTFS
md directory name Create a directory
Replace source file The directory to replace the file Replace the file
ren Original file name New file name Rename file name
Tree displays the directory in a tree structure, and the first folder is listed with the parameter -f Chinese the first item
Type file name Displays the contents of the text file
The more file name displays the output file screen by screen
Doskey's command to lock is the character
Doskey to unlock the command - the lock command provided for DOS (edit the command line, call the win2k command again, and create a macro). e .g. lock the dir command: doskey dir=entsky (cannot use doskey dir=dir);
Taskmgr thoned out the task manager
chkdsk /F D: Check disk D and display status report;
tlntadmn telnt service admn, type tntadmn select 3, and then select 8, you can change the telnet service default port 23 for any other port
Exit exit cmd .exe or, for now, exit the current batch script with parameter/B instead of .exe
The file name of the path path/executable file sets a path for the executable file.
cmd starts a win2K command interpretation window. P arameters: /eff,/en close, turn on command extension;
regedit /s registry file name Import registry;
regedit /e Registry file name Export registry
cacls file name parameter Display or modify file access control list (ACL) - for NTFS format. P arameters: /D username: set to deny access to a user; /P username: perm replaces access to a specified user; /G username: perm gives access to a specified user; Perm can be: N, R read, W write, C change (write), F full control; example: cacls D:\test.txt /D pub setting d:\test.txt deny pub user access.
cacls file name View the list of access user rights for the file
REM text Content Add annotations to the batch file
Netsh views or changes the local network configuration