neil3d/excel2json

使用bat 一次性转换的出现小问题

ZeroUltra opened this issue · 0 comments

得到的json
{ "3": { "ID": 3, "Name": "阳", "CharacterStruct": "LR", "Component1": "左耳刀", "Component2": "日", "Type": "Normal", "Function1": "", "Function2": "" }, "4": { "ID": 4, "Name": "石", "CharacterStruct": "None", "Component1": "", "Component2": "", "Type": "Normal", "Function1": "", "Function2": "" }, "5": { "ID": 5, "Name": "卒", "CharacterStruct": "None", "Component1": "", "Component2": "", "Type": "Normal", "Function1": "", "Function2": "" },......

`@SET EXCEL_FOLDER=.\excel
@set JSON_FOLDER=.\json
@set EXE=.\excel2json.exe

@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 --header 3
)`

我发现GUI工具更改ExportType为array 就可以了 但是bat 中的命令没有看到