自动编译生成
-------------------------------------------------------------------
@echo off
echo %date%
echo %time%
cd /d %~dp0
set a=./Project.bin
set yy=%date:~3,4%
set mm=%date:~8,2%
set dd=%date:~11,2%
set hh=%time:~0,2%
set mn=%time:~3,2%
set ss=%time:~6,2%
set value=%yy%%mm%%dd%%hh%%mn%
rename "%a%" "%value%.bin"
在IAR里面option:build-action 中 post-build command增加:
$PROJ_DIR$DebugExe
ename.bat $EXE_DIR$ $CONFIG_NAME$
就可以自动编译出带时间的bin文件
版本号可以自己在红 {MOD}字符更改:
set value=AAAAA-%yy%%mm%%dd%%hh%%mn%
自动编译生成
-------------------------------------------------------------------
@echo off
echo %date%
echo %time%
cd /d %~dp0
set a=./Project.bin
set yy=%date:~3,4%
set mm=%date:~8,2%
set dd=%date:~11,2%
set hh=%time:~0,2%
set mn=%time:~3,2%
set ss=%time:~6,2%
set value=%yy%%mm%%dd%%hh%%mn%
rename "%a%" "%value%.bin"
在IAR里面option:build-action 中 post-build command增加:
$PROJ_DIR$DebugExe ename.bat $EXE_DIR$ $CONFIG_NAME$
就可以自动编译出带时间的bin文件
版本号可以自己在红 {MOD}字符更改:
set value=AAAAA-%yy%%mm%%dd%%hh%%mn%
一周热门 更多>