echo 输入内容
eg. echo world is very well >qingshu.txt >将内容输入qingshu.txt中
dir 显示该目录下内容
type 文件名.扩展名 浏览文件内容
eg.type qingshu.txt
type 文件名.扩展名 | more 将|前的内容分页显示
eg.type qingshu.txt | more
eg. dir c:\windows | more
copy con 文件名.扩展名 复制屏幕至文件
开始编辑内容
ctrl+z 回车结束编辑
copy con qingshu.txt con-屏幕
Dear wife:
i love you
ctrl+z
del 文件名.扩展名 删除文件
eg.del *.txt 删除所有txt文件
eg.del *.* 删除所有文件
del *.* /s/q 无提示删除所有文件
md 文件名 创建文件夹
attrib 文件名 修改文件属性
attrib +h 文件名 隐藏文件
attrib -h 文件名 取消隐藏文件
attrib +h +s +a 文件名 +s将文件夹提升为受保护的系统文件夹 +a只读属性
工具-文件夹选项-查看-显示所有文件和文件夹/隐藏受保护的系统文件夹
dir /a 显示包括隐藏文件夹在内的所有文件夹
fsutil file createnew c:\system.ini 409600000 数字为文件大小 快速生产文件指定文件大小
attrib +s +a +h system.ini 隐藏
assoc 修改关联性
eg.assoc .txt=exefile 将txt文件修改为exe文件,改回同理
shutdown -s 关机
shutdown -s -t 时间 指定时间关机
shutdown -a 取消一切定时
shutdown -r -f -t 时间 指定时间重启 -f强制
shutdown -s -t 时间 -c "内容" 关机界面出现内容
shutdown -l 注销,同logoff命令
copy 拷贝谁 拷到哪去 当前目录下不需要写路径,上一层目录下用..\
copy haha.txt ..\b\
copy \shimisi\b\haha.txt .\ 将shimisi\b中的haha.txt拷贝到当前目录下
move haha.txt c:\ 将当前目录下的haha.txt移动到C盘
ren 原文件名.扩展名 要修改的文件名.扩展名 修改文件名
copy muma.exe \\10.1.1.2\ 拷贝到网络路径