批处理创建文件的方法

来源:互联网 发布:java网上报修系统源码 编辑:程序博客网 时间:2024/05/17 08:21

1. type nul>a.exe

2. cd >a.exe

3.cd. >a.exe

4.echo. >a.exe

>:表示覆盖

>>:追加

创建同时写入内容

echo 内容>a.txt

创建0-3.txt:

for /l %i in (0,1,3) do type nul>%i.txt

0 0