批量创建文件 int cont = 1; String s = "E:\\学习资料\\Java笔记-"; while(cont<100){ File f = new File(s+cont+".txt"); if(!f.exists()){ f.createNewFile(); } cont++; } 批量修改文件名 File file = new File("E:\\学习资料"); String sf = file.getAbsolute
bat批量去除文件首行 set n=1 :starline for %%j in (*.txt) do ( :3 if exist D:\work\test\new_%n%.txt (set /a n+=1&goto 3) set file=%n%.txt for /f "skip=1 delims=" %%i in ('type "%file%"') do ( echo %%i >>D:\work\test\new_%n%.txt ) set