"Reference url" http://www.openedv.com/posts/list/600.htm
1. Use. bat (Batch) file can be used to delete Keil compiled generated useless files, reduce the volume of the project disk, easy to talk about the project to the collaborators.
2. The unused file storage directory compiled by the program has been set to the Obj folder. When compiled, you will find that there are several files in the obj directory, about 100 files, occupying space will be nearly 20M.
3. Create Keilkilll.bat, and execute, you will find that the extra files will be deleted, the obj directory only hex file is saved, the size of only a few k, and the entire program size only about 1~3m.
4. The contents of the Keilkill.bat are:
Del *.bak/s
del *.ddk/s
del *.edk/s
del *.lst/s
del *.lnp/s
del *.mpf/s
del *.mpj/s
del *. obj/s
del *.omf/s
::d el*.opt/s :: Do not allow deletion of Jlink settings
del *.plg/s
del *.rpt/s
del *.tmp/s
del *.__i/s
del *.crf/s
del *.o/s
del *.d/s
del *.axf/s
del *.tra/s
del *.dep/s
deljlinklog.txt/s
del *.iex/s
del *.htm/s
del *.sct/s
del *.map/s
exit