sendtocm.bat

来自「该文件是包含了机器人足球比赛中的整个系统的代码」· Batch 代码 · 共 33 行

BAT
33
字号
@echo off


echo.
echo CPP Conversion Utility - Christopher Seysener (c) 2003
echo This utility copies the robot's current vision code into the offline debug tool, EOTN.
echo.

for /f "eol=;" %%i in (files.lst) do call :doit %%i
goto end

echo *************************************************************************
:doit
set oldfilename=%1.cc
set newfilename=%1.cpp
set headerFile=%1.h
echo Converting %oldfilename% to %newfilename%

del "C:\Product\DEBUG SOURCE\EOTN_3\VISION\%newfilename%.old" 
rename "C:\Product\DEBUG SOURCE\EOTN_3\VISION\%newfilename%" "%newfilename%.old"
echo #include "stdafx.h" > "C:\Product\DEBUG SOURCE\EOTN_3\VISION\%newfilename%"
type .\%oldfilename% >> "C:\Product\DEBUG SOURCE\EOTN_3\VISION\%newfilename%"

del "C:\Product\DEBUG SOURCE\EOTN_3\VISION\%headerFile%.old" 
rename "C:\Product\DEBUG SOURCE\EOTN_3\VISION\%headerFile%" "%headerFile%.old"
copy %headerFile% "C:\Product\DEBUG SOURCE\EOTN_3\VISION"
echo.

goto :EOF               

echo *************************************************************************
:end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?