@echo off
echo 批处理文件命令要写成一行,并且不能将批处理文件命名为:native2ascii.bat
set insrc=test_zh.properties
set revertsrc=test_utf8.properties
echo --------中文编码文件: %insrc%
echo --------UTF-8编码文件: %revertsrc%
rem ------------------注释----------------------
rem if exist %revertsrc% del %revertsrc%
rem --------------------------------------------
if exist %insrc% native2ascii -encoding UTF-8 %insrc% %revertsrc%
pause