配置表数据转为List结构

配置表数据转为List结构
This commit is contained in:
ALEXTANG
2022-06-16 11:31:55 +08:00
parent 76cde603ba
commit 4e3f87e17a
4 changed files with 67 additions and 52 deletions

View File

@@ -0,0 +1,15 @@
@SET EXCEL_FOLDER=xls
@SET JSON_FOLDER=..\..\TResources\Config
@SET EXE= Tools\excel2json\excel2json.exe
@SET CsharpPath=..\..\ConfigStruct
@ECHO Del old Config...
del %JSON_FOLDER% /S /Q
del %CsharpPath% /S /Q
@ECHO Converting excel files in folder %EXCEL_FOLDER% ...
for /f "delims=" %%i in ('dir /b /a-d /s %EXCEL_FOLDER%\*.xlsx') do (
@echo processing %%~nxi
@CALL %EXE% --excel %EXCEL_FOLDER%\%%~nxi --json %JSON_FOLDER%\%%~ni.json --p %CsharpPath%\%%~ni.cs --header 3 --cell_json true --a --exclude_prefix #
)
pause