native2ascii批量转换properties编码

native2ascii批量转换properties编码

@echo off
for /r . %%a in (*_zh*.properties) do (
	rem native2ascii路径为全路径,试过加环境变量或者设置变量不行
	"D:\Program Files\Java\jdk1.8.0_91\bin\native2ascii.exe" -reverse "%%a" "%%a_"
	del /Q /S "%%a"
	rename "%%a_" "%%~nxa"
)

你可能感兴趣的:(BAT_批处理,BAT_批处理,JAVA)