从目录文件创建txt的批处理

时间:2014-07-24 15:11:18

标签: batch-file

我需要批量从目录的zip文件创建txt文件:

这是针对linux:

for f in *.zip; do >> ${f%.*}.txt; done

我需要Windows批处理,谢谢你提前。

1 个答案:

答案 0 :(得分:2)

for %%f in (*.zip) do >>"%%~nf.txt" type nul

对于每个zip文件,在名称为zip但扩展名为.txt

的文件中键入null