摘要:
@echo offsetlocal enabledelayedexpansiond:rem 更改d:\bat为当前目录cd /d batrem 变量使用set /a a=1+2echo %a%echo %CD% echo %DATE% set /p var=请输入变量的值echo %var%rem find命令运用echo 111 >test.txt echo 222 >>test.txt type test.txt|find "111" find /V "111" test.txtdel test.txt rem 查看文件内容type 阅读全文