且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何删除“无扩展名的文件"的所有内容?使用Windows批处理命令

更新时间:2022-11-28 19:24:40

在批处理文件中使用Del *.删除没有扩展名的文件.

Use Del *. in batch file to remove files with no extension.

使用Dir /A-D *.列出所有不带扩展名的文件.

use Dir /A-D *. to list down all files with no extension.

使用以下命令清除文件内容

Use following command to clear the contents of a file

findstr "Any data that is not available in origfilename" origfilename > origfilename