19 lines
445 B
Batchfile
19 lines
445 B
Batchfile
set project_name=controller-v2
|
|
set version=v2.4
|
|
set out_filename=controller
|
|
set output_file_name=%out_filename%_%version%
|
|
set path=controller-v2
|
|
|
|
@echo off
|
|
@REM 判断文件是否存在
|
|
|
|
set file_path=%path%\%project_name%.hex
|
|
if exist %file_path% (
|
|
move %file_path% ..\Public\出厂文件\output\%output_file_name%.hex
|
|
)
|
|
|
|
set file_path=.\%project_name%.bin
|
|
if exist %file_path% (
|
|
move %file_path% ..\Public\出厂文件\output\%output_file_name%.bin
|
|
)
|