DOS command
All operations in CMD need to be switched to English input method
How to open CMD
- Start+system+command prompt
- Win key + R + enter CMD to open the console (recommended)
- Under any folder, hold down Shift+right mouse button to open the command line window here
- Add the CMD path in front of the address bar of the resource manager
- Choose to run as an administrator
Commonly used DOS commands
#盘符切换,输入目的磁盘+:
#查看当前磁盘下的所有文件 dir
#切换目录 cd(change directory) 磁盘切换需加/d,精确到某个文件需要在文件前面加\
#返回上一级文件 cd..
#清理屏幕 cls (clear screen)
#退出终端 exit
#查看电脑IP ipconfig
#打开应用
calc(计算器) mspaint(画图) notepad(记事本)
#ping命令
ping www.baidu.com
#创建目录
md+空格+目录名
#创建文件
cd+>+文件名(需要有文件格式 例.xxx)
#删除文件
del+文件名
#删除目录
rd+空格+目录名(需要在所要删除目录的上级操作)