简短精悍的代码,特别适合开源项目使用。

 

for /r %%F in (*.as) DO (
    move "%%F" tmp.txt
    type copyright.txt > "%%F"
    type tmp.txt >> "%%F"
    del tmp.txt
)

 

把上述代码保存为bat,另外同一级目录放置copyright.txt
修改(*.as)为相应的文件后缀,就可以对相应的代码文件加版权头

相关文章:

  • 2022-12-23
  • 2021-07-29
  • 2022-12-23
  • 2021-11-17
  • 2022-01-21
  • 2021-10-20
  • 2022-01-06
猜你喜欢
  • 2021-11-21
  • 2021-12-03
  • 2022-12-23
  • 2021-11-14
  • 2022-01-03
相关资源
相似解决方案