标签: batch-file
我需要批量从目录的zip文件创建txt文件:
这是针对linux:
for f in *.zip; do >> ${f%.*}.txt; done
我需要Windows批处理,谢谢你提前。
答案 0 :(得分:2)
for %%f in (*.zip) do >>"%%~nf.txt" type nul
对于每个zip文件,在名称为zip但扩展名为.txt